Well just stick with it. Ability in maths is an awesomely useful skill, and it only gets better later onAvishaiozeri wrote:I'm working on a pong game, because i'm a total noob... I'm good with math, but i'm learning all the stuff you're talking about this year, so i'm still not totally comfortable with some concepts...
Help, velocity and direction
Moderator: Coders of Rage
- RyanPridgeon
- Chaos Rift Maniac
- Posts: 447
- Joined: Sun Sep 21, 2008 1:34 pm
- Current Project: "Triangle"
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/C++
- Location: UK
- Contact:
Re: Help, velocity and direction
-
- Chaos Rift Cool Newbie
- Posts: 85
- Joined: Wed Mar 17, 2010 4:32 pm
Re: Help, velocity and direction
Thanks man, i'm totally grateful for your help, i owe you!RyanPridgeon wrote:Well just stick with it. Ability in maths is an awesomely useful skill, and it only gets better later onAvishaiozeri wrote:I'm working on a pong game, because i'm a total noob... I'm good with math, but i'm learning all the stuff you're talking about this year, so i'm still not totally comfortable with some concepts...
Edit: Sorry if it sounded arrogant when i said i'm good with math..
-
- Chaos Rift Cool Newbie
- Posts: 85
- Joined: Wed Mar 17, 2010 4:32 pm
Re: Help, velocity and direction
Hey guys, sorry for the double post. I have an idea, will it work if i'll make that the direction of the ball will be decided by the place it hits the player paddle? like if it'll hits the left, the ball will be thrown to the left or if on the right, to the right etc. ?
Re: Help, velocity and direction
yep, and that should be easy to do :D
- short
- ES Beta Backer
- Posts: 548
- Joined: Thu Apr 30, 2009 2:22 am
- Current Project: c++, c
- Favorite Gaming Platforms: SNES, PS2, SNES, SNES, PC NES
- Programming Language of Choice: c, c++
- Location: Oregon, US
Re: Help, velocity and direction
It all depends on what you want your game mechanics to do. If that's what you want it to do, then go for it. If you want it to speed up or slow down based on the angle of impact from the center of the paddle you could do that. It's entirely up to you, and the math isn't going to be terribly difficult for anything you can come up for a pong game.Avishaiozeri wrote:Hey guys, sorry for the double post. I have an idea, will it work if i'll make that the direction of the ball will be decided by the place it hits the player paddle? like if it'll hits the left, the ball will be thrown to the left or if on the right, to the right etc. ?
My github repository contains the project I am currently working on,
link: https://github.com/bjadamson
link: https://github.com/bjadamson
-
- Chaos Rift Cool Newbie
- Posts: 85
- Joined: Wed Mar 17, 2010 4:32 pm
Re: Help, velocity and direction
I tried it, and it works nicely. thank you all for the help!