PDA

View Full Version : as 3 noob who needs help with implementing an idea I have


patrickhh
06-10-2008, 07:47 AM
I want to try and make a game based off of The Missile Game 3D (http://www.addictinggames.com/missilegame3d.html). Since I am a horrible person at any kind of programing, I want to start very simple and just have random rectangles coming in from the vanishing point and scaling up over time.

I need help with the scaling and timing I guess to start off with and I have looked around trying to find tutorials to learn from, but with no luck. Can anyone suggest how to get started?

Thanks!

rrh
06-11-2008, 06:18 AM
That game's pretty cool, I haven't seen it before.

It would be a nice example for AS3 and OOP, you could have a generic Gate class and have each different shape of gate extend that.

For perspective, scale is inversely proportional to distance. So two identical rectangles, one twice as far away as the other will appear to be half the size. So a rectangle moving towards you at a constant rate will increase its size by a percentage for every unit of time.
visibleScale=(scale at distance==1)/distance