★ TouchArcade needs your help. Click here to support us on Patreon.

newbie on game programming

06-30-2009, 10:25 PM
#1
Joined: Jun 2009
Posts: 1
newbie on game programming

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
06-30-2009, 11:02 PM
#2
Joined: Jun 2009
Posts: 4
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?

06-30-2009, 11:36 PM
#3
Joined: Apr 2009
Location: Germany
Posts: 25
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...me-engine.html
http://www.garagegames.com/products/tge/iphone
http://unity3d.com/unity/
07-01-2009, 07:45 AM
#4
Joined: Nov 2008
Location: Hamburg, Germany
Posts: 114
Yepp, esp. Unity makes sense to look at. :-)
07-01-2009, 11:19 AM
#5
Quote:
Originally Posted by Morti View Post
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.

Quote:
Originally Posted by ultimo View Post
This is not Windows, this is Apple, dude
07-01-2009, 11:34 AM
#6
Joined: Apr 2009
Location: Germany
Posts: 25
Quote:
Originally Posted by f e a r l e s s View Post
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.
07-01-2009, 11:46 AM
#7
Quote:
Originally Posted by 93i View Post
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.

Quote:
Originally Posted by ultimo View Post
This is not Windows, this is Apple, dude
07-01-2009, 11:55 AM
#8
Joined: Apr 2009
Location: Germany
Posts: 25
Quote:
Originally Posted by f e a r l e s s View Post
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
07-01-2009, 03:50 PM
#9
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

Realmaze3D on the App Store
Realmaze3Free: 3 free mazes (a taste of Realmaze3D)
07-02-2009, 03:31 AM
#10
Joined: Nov 2008
Location: Baltimore
Posts: 205
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.