game-development

Pacman: how do the eyes find back to the monster hole?

I found a lot of references to the AI of the ghosts in Pacman, but none of them mentioned how the eyes find their way back to the central ghost hole after a ghost is eaten by Pacman. In my implementation I implemented a simple but awful solution. I just hard coded on every corner which direction should be taken. Are there any better/or...

ScoreNinja titleText and subboard are not doing anything

I am using ScoreNinja (a high score manager) in my android game, and I want to use the subboard feature mentioned in the documentation. But when I do this: mScoreNinjaAdapter.show(score, "Test Title", "test_board"); It doesn't do anything differently. The title is still "Global High Scores" and it is still showing scores from the mai...

Stratus (RTMFP) simple interaction user-user example.

Hi guys, do anyone know a link or example that shows how to communicate two users using Stratus?, I know that Adobe site has some examples.. but they are all related to video streaming and so.. Thx in advance. ...

Solutions for handling millions of timed (scheduled) messages?

I'm evaluating possible solutions for handling a large quantity of queued messages, which must be delivered to workers at a certain date and time. The result of executing them is mostly updates to stored data, and they may or may not be originally triggered by user action. For example, think of what you'd implement in a hypothetical lar...

Game Design - Reusing an objects properties?

I am new to Obj C, but have developed many types of games in Flash. I have multiple squares (UIImageViews) that have the exact same properties; can be collision detected (converted to CGRect) can have a background image (image.png) can set an int variable on itself to set state (0-3) can be a type of square represented by another int v...

Issues with screen sizes and activity rendering

I'm currently developing my first android app, and my first game. I've been developing on a netbook with a CliqXT (HVGA). Things are going well, it renders perfectly on the smaller screen. I knew I'd have some issues when rendering on larger screens, but the issues I'm having are not what I was expecting and I'm kind of stuck. So b...

Custom Swing look and feel vs. custom components?

I'm writing a game using Swing and want to achieve a distinctive "steampunk" inspired look for the GUI. This will require some animated components, chunky metallic borders etc. I know that I can get nice effects by overriding paintComponent and doing all of my rendering for custom lightweight components in that method. Is this the way ...

good c# 3D rendering engines

Possible Duplicate: Best 3D Graphics Engine for .NET Hello everyone, I'm an Indie developer and I'm in need of a good rendering engine for c# (Do not point me to Unity3D please, I want to be in control of my entire application and not just scripting and working in unity's proprietary editor) I really like Truevision3D but th...

iPhone 2D Game programming

Hi everybody. I would like to start a project about creating a 2D game for iPhone. I have already created some iPhone apps but none concerning game. The idea is simple : the user must drive a ball into a simple route composed of some obstacles before he gets cached by a wall that always go done. (I don't know if it make sense to you but...

Making a hack proof game in Javascript

Suppose you created an online game in HTML5/Javascript. All the code would be downloaded into the users browser, and they would run the game. What is stopping someone from copying the game onto their computer, and injecting functions and modules to cheat? IE, they could write a function that autoaims at the nearest enemy sprite for ex...

Fair matchmaking for online games.

Most online games arbitrarily form teams. Often times its up to the user, and they'll choose a fast server with a free slot. This behavior produces unfair teams and people rage quit. By tracking a player's statics (or any statics that can be gathered) how can you choose teams that are as fair as possible? ...

Code Golf: 2D Platformer

The Challenge Reach the end of the level! Bonus points if you hit each of the (C)oin blocks exactly 2 times. Disallowed Hard coding the command sequence in any way. Your favorite "One character language" that happens to do exactly one thing, which is solving this golf. How To Your program receives the level below(without lin...

How to divide graphics and game logic in WPF?

Hello, I'm creating a game in WPF and I'm wondering if it is a wise decision to divide game logic and graphics to different threads. My game logic works in steps (one step takes about 30 ms). I'm quite afraid that locks will decrease the performance. What do you think? Does anyone have an experience with that? Thank you! ...

Get touch location from touchesBegan and other game questions?

I'm trying to get the location of the touch event on the screen from -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event. What code can I use to read the touch coordinates? I've gotten this far so far: NSLog(@"Touch data: %@", [NSString stringWithFormat:@"NSSet: %@",[touches description]]); I'm trying to make a game u...

How to make a fish swim smoother in Flash

First,Sorry for my English. I wanted to make a flash game,it's about some fish swiming in a tank. All the fishes swim randomly,i don't need any rotation,just left and right direction will be fine with me. But the result is their actions are really odd. Can someone tell me how to make them swim just like real fishes? And there's also ano...

How to jump mesh object in 3d game in j2me

Hi, I have one ball(Mesh) on path(Mesh), I need to jump that ball on the gap between path. I am moving ball at speed now how will i jump it on button press on device. I have seen some physics engine, video and "com.hardwire.dymix" API, but I have not cleared it properly. Can any body please help for jump my ball object on path. Thank...

Communication in component-based game engine.

For a 2D game I'm making (for Android) I'm using a component-based system where a GameObject holds several GameComponent objects. GameComponents can be things such as input components, rendering components, bullet emitting components, and so on. Currently, GameComponents have a reference to the object that owns them and can modify it, b...

Any code samples open-source-engines, or open source hex tile games, references for writing Hex Tile based Games?

Using other questions on here I found Amit's Page on Games including a section on Hex Tiles which also links to a game coding wiki here. I am looking for suggestions: (a) libraries, engines or code samples in any language. I have found one in python, PGU+pygame, but looking for more. (b) open source hex-tile tactics or strategy games....

Player to class database relationship in a game

I'm attempting to figure out how to model a normalized database where a player may have multiple classes. What is the relationship between the player and the class objects? Each player will be able to have multiple classes and each class will then grant a player multiple skills as well. I'm familiar with normalized database and workin...

Relative mouse movement in HTML5.

I'm (still) porting an old Macintosh game to HTML5 and JavaScript. The game is a Tempest clone. (Wikipedia article on Tempest) (Shameless pimp of my project) While it's certainly possible to implement controls using the keyboard, I'm also wondering if it's possible to make relative mouse movement work in HTML5. The typical ways that I'...