game-development

Best way to procedurally add Power-up items to an iPhone game

To better explain this I'll use Doodle Jump as an example. Assuming that the platforms are recycled, when the character jumps up and the new platforms appear (by scrolling down) there is occasionally a propeller hat on one of them. is there a recommended method to manage this new object? Should I instantiate a single one of these power-u...

How to model this kind of artificial intelligence?

Hello, while playing to this game I wondered how an AI controlling either the detectives either the criminal could work. For lazy people the aim of the game is simple: the board game is an undirected graphs that has 4 kinds of edges (that can also overlap for same pair or vertices), each kind is a type of transport that requires a sp...

Blitting zoomed images using SDL

Is there any way to Blit a zoomed (in) version of a certain image/sprite using SDL? (Besides manually saving a zoomed version of the image..) Thanks :-) ...

How to stop camera from moving through walls?

I'm making a game using JigLib and GLGE. The camera follows the player the way I want it to, but when the player is close to a wall, the camera moves to the other side of the wall, which is annoying when there is something that needs quick reflexes. I tried using picking to move the camera when it can't see the player, but it only moves...

Collision detection using mulitple subviews within a moving view.

I am working on a game in OBJ C that has a ball view and a stage view. The stage view has 4 subviews. All views are UIImageViews. I have a method for collision detection that is working. I would like to expand it to more than 4 subviews without simply creating more lines of code. Looking at the code below, is there a way to simplify this...

Is there a way to develop an iPhone game on a PC?

Basically, that's my doubt. I want to develop an iPhone game on my free time, but I dont want to buy a Mac, so, is there a way to use my pc to develop the game?. Thx in advance. ...

Simple Game Server

I'm looking for a simple game server for an iPhone game I'm creating. The game is turn based, so I just need a way for players to find other players, and then have the server gather and send out turns. It's a simple two player card game. If you have ever seem the with friends app.. ( Chess with friends, Words with friends ) that is th...

Algorithms for realtime strategy wargame AI

I'm designing a realtime strategy wargame where the AI will be responsible for controlling a large number of units (possibly 1000+) on a large hexagonal map. A unit has a number of action points which can be expended on movement, attacking enemy units or various special actions (e.g. building new units). For example, a tank with 5 actio...

I need a strategy for developing graphics for a Cocos2d-iPhone project.

My little game project is a physics based platform jobbie created with Chipmunk (via SpaceManager) in Cocos2d. I wanted something a little different to the a-typical tile mapped level design, so I'm creating levels as SVG files in Illustrator, which I then parse to create the landscape, platforms, spawn points etc etc. It's working pre...

Creating a skeleton for a Game Algorithm in Android

Hello. I need some help on the following: I have the following class: public class Game extends Activity {... ...} My questions is: Where and how do I create my View (do I use another class that extends View....) Where and how do I implement the Runnable interface so I would be able to use threads. Where and how do I connect all...

Game Server: Broadcasting UDP packet over Internet?

A friend of mine made a small LAN-playable game, and ask me to change it, so it could be playable over the Internet. I don't want to make huge changes on the client application. When a game is created, the server keep sending UDP BROADCAST packets to tell everyone that a game has been created. Now, I just need to change this BROADCAST i...

How to solve the following graph game

Consider the following game on an undirected graph G. There are two players, a red color player R and a blue color player B. Initially all edges of G are uncolored. The two players alternately color an uncolored edge of G with their color until all edges are colored. The goal of B is that in the end, the blue-colored edges form a connect...

Hierarchical state machine implementation in Erlang

Hi! I am planning a turn based game (a sort of board game), and the backend will probably be done in Erlang. The game logic part seems to be a fit for a hierarchical state machine, but I'm not sure about how to implement that in Erlang. Maybe I can spawn a separate process with each child fsm, not sure if this would work. Another opti...

Immutable game object, basic functional programming question.

Hi all, I'm in the process of trying to 'learn more of' and 'learn lessons from' functional programming and the idea of immutability being good for concurrency, etc. As a thought exercise I imagined a simple game where Mario-esq type character can run and jump around with enemies that shoot at him... Then I tried to imagine this bein...

How to differentiate between iphone4 and iphone 3

Hi All, I am trying to build a game for the iphone using cocos2d engine. I wanted to know how can I tell a difference whether the user is using iphone 4 or iphone 3 as I wanted to load hi-resolution graphics for the iphone4 and low-resolution for iphone 3. I know if I use @2x.png at the end of the image file name UIImage loads the hi-re...

(C/C++/C#) DirectX 9 Overlay, preferably the same way xfire or Steam does it

Hello! I wonder what techniques xfire and/or Steam uses to overlay into games. I'm trying to do something similar and I really would like to know what is the least intrusive way, I.e. won't alert any anti-cheat systems. I don't need any kind of information from the game (no wall-hack BS). I would basically just like to display a rectang...

How to use transposition tables with MTD(f)

I'm writing an AI for a card game and after some testing I've discovered that using MTD(f) on my alpha beta algorithm - a series of zero-window searches - is faster than just using alpha-beta by itself. The MTD(f) algorithm is described well here http://people.csail.mit.edu/plaat/mtdf.html The problem I have is that for each pass in th...

3d models losing their parts

hello, in several games, you see 3d models are shot at different parts of their bodies and lose those parts. which kind of 3d model format or which kind of technolog they are using ? thank you ...

[FLEX] Help in creating a card stack

Hi there, I'm trying to develop a card game with Flex, and I was wondering if there's a way to create an horizontal list (the cards that I have in my hand) having the elements overlapped, like you can see in this example made with openflux: http://www.ryancampbell.com/flex/StackListExample/StackListExample.html the thing that's missing...

What programs can convert your game into a browser based game?

I have been working on a game and want to convert it to a browser based game where I can host it through my website. Are there any programs that can convert games into a browser based game? Thanks for your help, ...