Hi All,
I'm a newbie to game programming and glbasic.
Creating a game which needs:
to throw a ball at a target box.
Can you please point me to some samples
I think you're going to have to give us a bit more info than just "throw a ball at a target box."
Do you need to move a cursor to aim, then press a button to throw?
Does the ball need to bounce off of objects/walls?
Doe the ball disappear into 3D space?
Does the ball need a trajectory (parabola)?
Are there any other games that demonstrate what you'd like help with?
Can you draw a mock up of what you want?
You can never give too much info you know ;) :)
For starters, super thanks for the quick reply
Sensed that the question I asked was too vague :)
Ok, these are my requirements in detail, aim is to build a hop scotch game.
(Reference: http://www.youtube.com/watch?v=fZzswQaICfM )
One part of the game is to throw the pawn into one of the squares in a grid.
Having said this - the throw must have a trajectory for sure and also the logic to determine if the
pawn lands in the appropriate square (does not touch the sides of the square)
Can you please point me to some samples/ more clarity now.
The other part of the game is to simulate a hop, for starters want to finish the throwing part first.
Thanks again for the reply
Hopscotch is a cool game that's general played with bottle caps on a chalked field.
For 2D starts, I think the simplest visual form would be like a top view or isometric mini-golf game. An animating bottle cap, when moving, can spin and increase in size and shadow to give a perception of height as it travels.
Matchy´s suggestions on this are great.
Should you not have an specific idea on how visually your game will go (iso, 3d, 2d,etc), I would recommend to do a top down version, with height (Z axis) going as zoomed objects (as Matchy described).
It would be nice to have an idea of what kind of controls you want to implement, by that I mean should it be keyboard/joy or are you going for touchscreen stuff? (The reason is to help you out pointing you to an example code that could work more similar to your intentions...is it for mobiles? Desktops or pads?).
Let´s suppose you want to do just like that, a 2d top down version, and let´s suppose you are unfamiliar with GLB...examining the PONG tutorial might give you a great head-start! :good:
Thanks much folks, I have decided to go for the isometric view for now.
Planning to get in the game for the desktop version for starters (will migrate to touch controls once I have the basic features working)
The PONG game gives an overview of the ball movements, aim, collision, etc
The mini golf game was mentioned - is the code for this game or a similar game which deals with isometric views / spin, zoom and increasing shadow sizes available