Computer Science Canada warp speed thing |
Author: | shoobyman [ Fri Dec 29, 2006 2:20 pm ] | ||
Post subject: | warp speed thing | ||
i was just experimenting with a star moving background thingy, and i created a warp effect also. use arrow keys to move around, the farther you move from the srating point, the less stars though, so don't go too far. if you press w you will go into warp speed, press e to exit warp speed. I think it is pretty cool.
|
Author: | frank26080115 [ Sat Dec 30, 2006 10:00 pm ] |
Post subject: | |
riding that lil ship must hurt, nice work, hows the space shooter going? |
Author: | ericfourfour [ Sun Dec 31, 2006 12:20 am ] | ||
Post subject: | |||
You procedure called MOVEALL is all in capitals. This naming convention is usually reserved for constants. Instead try moveAll or move_all. For more information check out wtd's Turing Style Guidelines. You should also look into records because that first array has many similar variables in it. Try something like this:
|
Author: | Windsurfer [ Wed Jan 10, 2007 4:34 pm ] |
Post subject: | Re: warp speed thing |
Uhm. you should be looping your stars so that after they go off the edge of th screen, they appear somewhere else... space is supposed to infinite, after all. ![]() |
Author: | shoobyman [ Wed Jan 10, 2007 6:54 pm ] |
Post subject: | RE:warp speed thing |
good idea, but for the game i will be making with this, you will not be allowed to go too far out because the mission is to defend a space station. When the game is done i will post it up. Should be pretty cool. |
Author: | Barloq [ Thu Jan 11, 2007 11:52 am ] |
Post subject: | Re: warp speed thing |
That's really cool man! |
Author: | Barloq [ Thu Jan 11, 2007 12:03 pm ] |
Post subject: | Re: warp speed thing |
(Btw Shooby, the +2 on your karma was all me man. You're a cool poster.) |