Computer Science Canada star field |
Author: | omni [ Wed Feb 25, 2004 7:01 pm ] |
Post subject: | star field |
I dont know if anyone previously did this, but this is a program that makes stars move on the randomly and you can change the direction of the stars movement. You can also change the speed of the star movement with ALT and CTRL. |
Author: | Paul [ Wed Feb 25, 2004 7:06 pm ] |
Post subject: | |
Pretty good, its gets flashy though, if you slow it down. |
Author: | omni [ Wed Feb 25, 2004 7:11 pm ] |
Post subject: | |
ya i don't know how to get it a smooth animation and the ability to handle more stars. (it gets a lot slower with more stars) |
Author: | Paul [ Wed Feb 25, 2004 7:15 pm ] | ||
Post subject: | |||
Here, use View.Update, its ezness: try this code, looks much better, with only 2 added lines
|
Author: | omni [ Wed Feb 25, 2004 7:19 pm ] |
Post subject: | |
thanks |
Author: | jonos [ Wed Feb 25, 2004 8:13 pm ] |
Post subject: | |
nice looking program |
Author: | shorthair [ Wed Feb 25, 2004 8:21 pm ] |
Post subject: | |
I like it , and its got some nice clean code , keep up your good work , and look into smoother animation for best results |
Author: | apomb [ Wed Feb 25, 2004 9:19 pm ] |
Post subject: | |
I also like it ... using cls instead of redrawing the stars in black, and seting the background color to black, it is also less choppy ...quite neat code as well! nicely done ![]() |
Author: | omni [ Thu Feb 26, 2004 12:45 pm ] |
Post subject: | |
for some reason when I add the view.update, it moves slower. Is this normal, or is it my computer? |
Author: | recneps [ Thu Feb 26, 2004 3:45 pm ] |
Post subject: | |
Thats normal, just lower delays |
Author: | Cervantes [ Thu Feb 26, 2004 6:25 pm ] | ||
Post subject: | |||
if you do what compwizz suggests and not redraw the background with a huge rectangle then you need to do the following
|
Author: | Jodo Yodo [ Sat Mar 06, 2004 10:57 pm ] |
Post subject: | |
Purdy Stars |
Author: | jonos [ Sat Mar 06, 2004 10:59 pm ] |
Post subject: | |
this topic is old, you didn't need to bring it up. but then again i brought back up two of the oldest, but my actions were justified because they were the oldest posts. |
Author: | MacDaddyM [ Mon May 17, 2004 5:17 pm ] |
Post subject: | |
nice |
Author: | omni [ Tue Jun 15, 2004 3:56 pm ] |
Post subject: | |
Made the animation smoother, by putting in View.Update. Also added 3 layers. Ex: there is a background layer of stars that dont move that fast(dark colour), middle layer of stars that move and a top layer of stars that move fast(bright colour). I practiced the use of records in this program. Controls are still same. Help on more efficient way of checking if the stars hit boundaries ? |
Author: | Paul [ Tue Jun 15, 2004 4:01 pm ] |
Post subject: | |
The stars get stuck on the left boundary, thats the only problem I see ![]() |
Author: | omni [ Tue Jun 15, 2004 4:07 pm ] |
Post subject: | |
fixed it up. |