CeDSoFt's blog

vendredi, novembre 23, 2007

iSnake for iPhone : Alpha 0.4.0 is out

I've got many mails / comments for the current iSnake iPhone game, thanks guys :-)
So, I've tried to include all your requests about scores, silent mode, pause difficulty, etc. in this version.

So here come the major changes :

  • Scores diplays on the top left hand corner. (it's quite small, I don't know how to use more fonts to make it looks better in the whole game skin).
  • You can pause the game by touching the bottom black bar on the screen.
  • You can set the silent mode by setting the volume at minimum (the vibration will turn off as well)
  • Vista thing : I let you discover how Snake likes it...
  • Brand new icon : Thanks to Steven Ligatsa
The minor changes :
  • The app is now ready for custom/skin integration from Installer.app
  • The "Hi Score" now link to the iSnake score board. (which is not working yet...)
  • There are less vibrations (the eating-apple one was too much...)
Next step :
  • Levels & custom levels
  • Silent mode by switching the button
  • Working online score.

J'ai reçu plusieurs mails et commentaires pour la version actuelle du jeu iSnake pour iPhone, merci à tous :-)
J'ai donc essayé d'inclure toutes vos demandes concernant les scores, le mode silencieux, la pause, la difficulté dans cette version.

Donc voici les changements majeurs de cette version :
  • Affichage des scores dans le coin en haut à gauche. (C'est assez petit/discret, je ne sais pas encore comment changer la fonte pour une meilleur intégration au skin).
  • Vous pouvez mettre le jeu en pause en appuyant sur la barre sombre dans la partie inférieur de l'écran.
  • Vous pouvez rendre le jeu silencieux en diminuant le volume au minimum (les vibrations cessent également)
  • Le bidule Vista : Je vous laisse découvrir comment Snake l'apprécie...
  • Nouvel icône : Merci à Steven Ligatsa
Les changements mineurs :
  • L'application est maintenant prête à utiliser les customs/skins depuis Installer.app
  • Le bouton "Hi Score" affiche maintenant le tableaux des scores. (qui n'est pas encore fonctionnel...)
  • Il y a moins de vibrations (vibrer à chaque pomme mangée était un peu trop...)
Prochaine étape :
  • Niveaux et customs de niveaux.
  • Mode silencieux par le bouton dédié de l'iPhone.
  • Score en ligne fonctionnel

Libellés : , , , ,

2D physics programming project

Why bringing physics simulation to a game / app ?
Just because it's the best way to have a real feeling of animation/interactions between objects and forces (gravity, explosions, etc.) in a game.

First step : Dynamics
What I've done with iSnake and its GameOver screen is to bring Dynamics problem to the iPhone. Basically, how the balls are moving/accelerating depending on the gravity (given by the accelerometer), their masses and the air friction.
To make the balls bouncing each other, I've added a collision detection algorithm with momentum conservation. (detection collision between ball was very simple : calculate the distance)

Next step : Bringing rotation after collision
The bouncing balls problem was quite simple but now, I have to compute rotation and its momentum on objects.
If you hit a rectangle object in a corner, it will not move straight but rotate. This is the next physic law about torques.
I need to experiment collision detection algorithm between simple shapes : rectangles and polygons.
Then, I'll have to calculate the rotation depending on the collision impact (torque).
Example : Contacts between rigid bodies

After that, there are some interesting stuff to add, all concern constraints : springs, rotation axis, etc.


Resources :
http://www.pfirth.co.uk/ (physics programming)
http://chrishecker.com (physics theories and programming)
http://www.myphysicslab.com/contact.html (physics theories and programming)
http://www.kloonigames.com/blog/games/crayon/ (crayon physics game : worth trying :-))


Examples of 2D rigid body collisions apps

2d Physics Demo v1.0



Crayon Physics




Libellés : , , , , , , ,

samedi, novembre 17, 2007

Snake game for iPhone - Alpha 0.3.0 released

I've just added :

  • Sound
  • Vibrations
  • Menu
  • Splash Screen
Special credit for Oxbow (original idea) on this thread (French)

You can test it with the Installer.app repository, just add the source : http://prog.cedsoft.free.fr

Libellés : , , , ,

vendredi, novembre 16, 2007

Multiple objects collision detection algorithm (in iSnake)

I've just added a multiples objects collision detection (bouncing balls) to my current iPhone app development : iSnake.

It's another step to my platform game development, but now I have most of the parts of a pool game...

You can download the current version of this game on my test repository (Installer.app) : prog.cedsoft.free.fr

Je viens d'ajouter un algorithme pour la detection d'objets multiples (balles rebondissantes) au jeu iSnake pour iPhone.

C'est un autre pas vers le développement de mon jeu de plateforme, mais là j'ai pas mal d'éléments pour commencer un jeu de billard...

Vous pouvez télécharger la version actuelle de ce jeu sur mon dépôt de test (Installer.app) : prog.cedsoft.free.fr

More about collision detection and physics programming :


Video :


Libellés : , , , , , ,