Board index » delphi » star.pas - starfield that you can fly around in - star.pas [1/1]
q...@antistatic.com (Pascal Quentin Porcupine)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
q...@antistatic.com (Pascal Quentin Porcupine)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
star.pas - starfield that you can fly around in - star.pas [1/1]Quotethec...@iconn.net (TheCrow) wrote: krad-31337 high-ASCII text in your source code) why can't people use common sense... *sigh* he could have at least had |
Moonchil
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:star.pas - starfield that you can fly around in - star.pas [1/1]LD A,<53hinf$...@bubba.NMSU.Edu> Ok Quote>thec...@iconn.net (TheCrow) wrote: { Integer Math Starfield } USES PROCEDURE Init; PROCEDURE ResetStar(star:integer); if speed <> 0 then if (xv[star] = 0) and (yv[star] = 0) then END; PROCEDURE MoveRight; BEGIN BEGIN PROCEDURE MoveUp; BEGIN PROCEDURE MoveDown; BEGIN PROCEDURE MoveUpLeft; BEGIN PROCEDURE MoveUpRight; BEGIN PROCEDURE MoveDownRight; BEGIN PROCEDURE MoveDownLeft; BEGIN BEGIN Init; FOR i := 1 TO MAX DO {Optional, makes stars move faster as they get closer} if yv[i] > 0 then yv[i] := yv[i] + 1 putpixel(x[i]+320,y[i]+240,c[i]); END; if keypressed then delay(20); UNTIL 1 = 2; Greetings, |Programmer, musician | |
Moonchil
![]() Delphi Developer |
Sun, 04 Apr 1999 03:00:00 GMT
Re:star.pas - starfield that you can fly around in - star.pas [1/1]LD A,<53hinf$...@bubba.NMSU.Edu> Ok Quote>thec...@iconn.net (TheCrow) wrote: { Integer Math Starfield } USES PROCEDURE Init; PROCEDURE ResetStar(star:integer); if speed <> 0 then if (xv[star] = 0) and (yv[star] = 0) then END; PROCEDURE MoveRight; BEGIN BEGIN PROCEDURE MoveUp; BEGIN PROCEDURE MoveDown; BEGIN PROCEDURE MoveUpLeft; BEGIN PROCEDURE MoveUpRight; BEGIN PROCEDURE MoveDownRight; BEGIN PROCEDURE MoveDownLeft; BEGIN BEGIN Init; FOR i := 1 TO MAX DO {Optional, makes stars move faster as they get closer} if yv[i] > 0 then yv[i] := yv[i] + 1 putpixel(x[i]+320,y[i]+240,c[i]); END; if keypressed then delay(20); UNTIL 1 = 2; Greetings, |Programmer, musician | |
1. Starfield simulation - stars.pas (1/1)
2. star.pas
3. flying stars
4. Const.pas, QConst.pas and SysConst.pas for Delphi 6
5. asking for the system.pas the vcl.pas and the rtl.pas
6. Using Geometry.Pas to rotate vectors around vectors...
7. What's wrong with this .pas please help - grabar.pas (0/1)
8. What's wrong with this .pas please help - grabar.pas (1/1)