Help with star fly by program
| Author |
Message |
Jonny Tight Lips

|
Posted: 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.
| Description: |
|
 Download |
| Filename: |
space.t |
| Filesize: |
738 Bytes |
| Downloaded: |
213 Time(s) |
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Neo

|
Posted: Wed Jan 12, 2005 9:35 pm Post subject: (No 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.
|
|
|
|
|
 |
apomb

|
Posted: Thu Jan 13, 2005 2:36 am Post subject: (No 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 with 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
|
|
|
|
|
 |
|
|