Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help with star fly by program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jonny Tight Lips




PostPosted: 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.


space.t
 Description:
thingy

Download
 Filename:  space.t
 Filesize:  738 Bytes
 Downloaded:  156 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Neo




PostPosted: 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




PostPosted: 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
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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: