Computer Science Canada

Help with star fly by program

Author:  Jonny Tight Lips [ Wed Jan 12, 2005 8:07 pm ]
Post subject:  Help with star fly by program

Well I'm trying to make a program like the windos screen saver with the stars. Well it works... it just doesn't look right. Just need some help to make it actualy look like it should. Thanx.

Author:  Neo [ Wed Jan 12, 2005 9:35 pm ]
Post subject: 

Why do you use lines? Changing it to a dot looks better and when calculating your y values use maxy div 2 so its centered.

Author:  apomb [ Thu Jan 13, 2005 2:36 am ]
Post subject: 

alright, heres whats wrong
code:
   drawdot (x1, y1, white)
        drawdot (x2, y2, white)
in place of
code:
drawline (x1,y1,x2,y2,white)

and change the
code:
maxx
with
code:
maxy
in these two lines
code:
        y1 := round (distance (o) * cosd (angel (o)) + maxx div 2)
                 y2 := round ((distance (o) - 10) * cosd (angel (o)) + maxx div 2)

and now... try this, it should look a lot better
all you have to do now is make it fullscreen and get rid of the titlebar! gj on the "particle engine" looking thing tho, great programming!

- compwiz


: