please can someone tell me how i would go about createing a 2d pong game in irrlicht.
I would like to know a game is constructed, what do i do first, are there any good ways of doing things ect...
pong
u should look at the tuts especially the 6th tuthttp://irrlicht.sourceforge.net/tutorials.html
There will be three steps to making this.
1)Get all your graphics going.
This could be as simple as a black screen, a white circle, and a block for a paddle.
2)Get the ball and paddle moving.
See below*
3)Make it check to see if the ball misses the paddle.
That's the bare necessities, other things could be sound, a score counter, multilayer. (the possibilities are endless)
*This will require trig. You would start the ball moving at a certain angle (calculating the movement with sin & cos). When you want the ball to bounce, you find the opposite angle relative to the side it bounced off of, and that is the new angle. If the ball hits something other than the paddle or the top or bottom of the screen, then it doesn't bounce, and the player loses. If you want some more detailed info, (algorithms etc) just say so!
If you get this going, you could use matrices and calculate 3d pong! (the ball could bounce away from you!)
Good Luck!
1)Get all your graphics going.
This could be as simple as a black screen, a white circle, and a block for a paddle.
2)Get the ball and paddle moving.
See below*
3)Make it check to see if the ball misses the paddle.
That's the bare necessities, other things could be sound, a score counter, multilayer. (the possibilities are endless)
*This will require trig. You would start the ball moving at a certain angle (calculating the movement with sin & cos). When you want the ball to bounce, you find the opposite angle relative to the side it bounced off of, and that is the new angle. If the ball hits something other than the paddle or the top or bottom of the screen, then it doesn't bounce, and the player loses. If you want some more detailed info, (algorithms etc) just say so!
If you get this going, you could use matrices and calculate 3d pong! (the ball could bounce away from you!)
Good Luck!