PDA

View Full Version : newbie on game programming


symadept
06-30-2009, 10:25 PM
Hi,

I am a newbie for Mac but having good experience in programming for windows. I would like to know how can I handle the scenario of bullets and falling objects moving simultaneously. Any pointers are really appreciable.

Thanks
Mustafa Shaik
symadept@gmail.com

wizard341
06-30-2009, 11:02 PM
Not sure I follow what you mean by 'handling' it?

One way to do it is to have every object on the screen derive from some sort of entity class, where the entity knows it's x/y (and z if applicable) location its shape, and its velocity.

Then every frame you go through all of the entities and move them. Afterwards you check to see if any of their regions overlap (easy to to in 2d, a bit tricker in 3d). If any of them overlap they are colliding, and thus something got hit. Then you need to figure out what got hit and what should happen.

This is the most basic idea, but I'm not really sure what you are looking for. Can you describe what is needed a bit more?

93i
06-30-2009, 11:36 PM
if you want to develop a game, i think first you should have a look for the existing game engines.

there are plenty, even free, and there is no need to reinvent the wheel as long as you don't plan to bring out the next graphical impressive AAA killer title.

here are a few free:

http://code.google.com/p/cocos2d-iphone/
http://sio2interactive.com/TECHNOLOGY.html

and a few commercial:

http://www.stonetrip.com/shiva/shiva-3d-game-engine.html
http://www.garagegames.com/products/tge/iphone
http://unity3d.com/unity/

Morti
07-01-2009, 07:45 AM
Yepp, esp. Unity makes sense to look at. :-)

f e a r l e s s
07-01-2009, 11:19 AM
Yepp, esp. Unity makes sense to look at. :-)

Every Unity game I've played has been very crappy. Unity also makes you fork over more $$$ so your file size isn't 20MB for a 1MB game.

93i
07-01-2009, 11:34 AM
Every Unity game I've played has been very crappy. Unity also makes you fork over more $$$ so your file size isn't 20MB for a 1MB game.

well, then you're some unlucky son of a diddly, as some of the top itunes games are made in unity (e.g. zombieville usa). what kind of games are done with a engine does say nothing about the engine, it says something about the developer, but not more.

the file size has much improved with the last update, even for the 'cheap' version (which i have used for all of my games). although working with torque on pc/mac for years, i have not tried the iphone version yet, but so far i have tested all other of them and in matter of possible result, unity is so far the best. i must admit, that in matter of 'fun' working with it, i do prefer shiva, but its ode based physics are no match to unity's physX based.

f e a r l e s s
07-01-2009, 11:46 AM
well, then you're some unlucky son of a diddly, as some of the top itunes games are made in unity (e.g. zombieville usa). what kind of games are done with a engine does say nothing about the engine, it says something about the developer, but not more.

the file size has much improved with the last update, even for the 'cheap' version (which i have used for all of my games). although working with torque on pc/mac for years, i have not tried the iphone version yet, but so far i have tested all other of them and in matter of possible result, unity is so far the best. i must admit, that in matter of 'fun' working with it, i do prefer shiva, but its ode based physics are no match to unity's physX based.

They may be top iTunes games, but they still are no good. Zombieville is a good example. I apologize in advance for sharing my opinion.

93i
07-01-2009, 11:55 AM
They may be top iTunes games, but they still are no good. Zombieville is a good example. I apologize in advance for sharing my opinion.

well, no need to apologize, zombieville is not my type of game either, but it was quite high on the top sale list, so i assume there are people out liking this type of game... still, not beeing your or my favourite game says nothing about unity. there is a demo, so everybody, including symadept can try for her-/himself

Eric5h5
07-01-2009, 03:50 PM
There are a number of good Unity games...with as many of them as there are, there are bound to be some bad ones, but probably not any more so than average.

--Eric

TheBunny
07-02-2009, 03:31 AM
When ever you lower the cost of entry to a market...
Say Unity or Real Basic, Game Maker etc your bounds
to get a lot of crap along with the good stuff.

Perfectly normal and has or should not have any baring on the tools themselves.

exosyphen
07-03-2009, 01:25 PM
May I recommend you to start with some application design tutorials?
From your question, you look are you are new to the entire programming scene.