English
Forum

Stars & Sprites

 
Hi,
i want gladly so a manner Sokobahn-Variante write (there's Internet only 2 millions), and would like thereby The function Stars in the background having. the works too everything lovely, blos can I no Graphics over because Stars lay, without thats from the Sternen durchkreutzt go.

now have The einzelenen Flächen as Sprite taken
Let Sprite1&=InitSprite(ExternHDC&,.....
and then works the, mere that I Yes no Animation wants, separate only The Lauffläche, therefore had I The function SetSpriteFixMode (Sprite1&,1) using. though must I between whom both command InitSprite and SetSpriteFixMode mindesten 100ms a Sleep make, there it me these not entire aufbaut. the against lasts at set up (can at least 340 Flächen his) too long. gives it a others Possibility the without Sleep hinzubekommen ?

greeting
Marc-Gordon
 
04/20/04  
 



Hi,

still, You can Graphics overlay, The from the Stars not durchkreuzt go. For this, is Parameter R there:

Stars (Z,R,L,O,R,u,A,G,F)

Created one bewegtes Starfield, with the The stars the Viewer against come. Stars() operates automatically in a own Thread, To The function NoStars() the Starfield exits.

Z : Long - lever the HDCs, into The stars drawn go, usually well %HDC
R : Long - 0, or lever the HDCs, the for Restaurierung the Sternenpunkte taken becomes
L : Long - left Begrenzung the Sternenfelds (relatively to that Window)
O : Long - upper Begrenzung the Sternenfelds (relatively to that Window)
R : Long - rights Begrenzung the Sternenfelds (relatively to that Window)
u : Long - downstairs Begrenzung the Sternenfelds (relatively to that Window)
A : Long - amount stars
G : Long - speed the stars (squat = quick)
F : Long - ? Happen?

Ergebniss: Long - with Error 0, otherwise address the Threads.

A stars come on the Viewer zugeflogen. The stars come from the middle the in L,O,R and u angegebenen Rechtecks and wander then to edge. with the function OptionStars() can but yet as an afterthought the Mittelpunkt the Sternenfelds and the direction/speed the stars changed go.
It can always only one Starfield at the same time created go.
The Size the Field, with the L, O, R and u certainly becomes, must at least The Size 320 x 320 own, smaller ones Sternenfelder are not permits.
If stars together with Sprites program go, then ought to for R the worth of copy 2 (k2) indicated go (see InitSprites).
becomes for R a zero indicated, then becomes the screen only with black Pixeln restauriert.
[...]
best schaust You you time whom BallerspritesEx Sourcecode on, there we this effect used.

Greeting, Frank
 
04/20/04  
 



How already described, have I the indeed made. I can Graphics over the Starfield with InitSprite lay, The not from the Sternen durchkreuzt go. The problem I have, is that I Yes in the actual senses no Animation means Sprite above lay wants, separate only maximum 340 Images (32x32 Pixel) go any Sprites animiert, so runs naturally the Starfield very slow (not time Worp 1) therefore mus I The Sprites SetSpriteFixMode quasi stop. though draw it I do not any Sprites, if I not one Sleep between InitSprite and SetSpriteFixMode make, and the lasts unfortunately simply too long.
thanks for trouble in the Vorraus.
greeting
Marc-Gordon
 
04/20/04  
 



OK, now is it semi four watch in the morning, what about me have The Solution found.
but not SetSpriteFixMode have I SetSpriteAnimMode taken and it functions lovely.
Tja - the simplest finds one(n) hold even not always immediate.

nevertheless thanks for Help
greeting
Marc-Gordon
 
04/20/04  
 



Hi,

ok, lovely.
is always difficult, a problem To understand, what only described watts. If you again Problems get, can you me your code too gladly zuschicken, so I it yourself testing can - but only if You want.

Greeting, Frank
 
04/20/04  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.191 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 1 subscriber:

unbekannt (5x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie