game-development

Code examples for simple game servers

Hello. I'd like to build an iPhone game for the Game Center and am currently researching the server part of it all. I learn best by example and I'm having a hard time finding any examples of simple game servers that demonstrate... How data is formatted and sent to the server and how it is received How to authenticate the data that is...

Is there an image design community that collaborates with developers to create applications with a better and more polished look and feel?

So after a lot of hard (and fun) work in development I’ve finally gotten fairly close to the end of my application development..or so I thought. I’m developing a game for Android (but that’s irrelevant to this post). Up until now, the images/drawables I was using were placeholders that took 5 minutes in MSPaint to create. So, now that...

Player class with my C# XNA game

I would usually seek help on the XNA forums but they're down at the moment, so I've come here. I am making a new XNA game, and I want to have a player class. At the moment I have a main game class called Dots. This represents the main game. This is how my Player class is laid out at the moment: namespace Dots { class Player : Micro...

Trying to figure out the hierarchy of classes in my XNA game...

I am still kinda new to developing games in XNA and using classes with C#, but I want to start a semi-decent game project where I can learn without throwaway projects. I want to devide my game up into classes. For example a main game class, a player class (i want two players, and they battle against each other), a level class (for drawi...

Is it possible to make real-time network games in JavaScript

Is it possible to make real-time network games using JavaScript? I've seen flash do it, but I'm interested in making a multiplayer browser-based game that doesn't depend on any plugins. I've read that it is impossible to keep Ajax connections open for streaming communication, and it isn't feasible to make several new Ajax connections per...

Genetic Algorithms in games

I have to do a term project on Genetic Algorithms, and I had the idea of tuning the traits (i.e. weapons to be used , etc) of a first person shooter bot. For example, I would represent the traits in the form of a string, with first 10 bits representing probability of choosing weapon1, next 10 bits representing probability of choosing wea...

Flash Game 'falling' movieclips

I'm gonna make a small Flash game where movieclips go downwards. Very easy to make of course but I want to make a static level. I want to draw this level in Adobe Flash CS4 (drag movieclips in a big movieclip for example). So in the game I'm planning to lower this big movieclip couple of pixels per frame. But this movieclip needs to have...

Flex SDK or Adobe Flash?

I looking to get into Flash game development (coming from XNA), but I'm not so sure I'm willing to dish out for the pricey Adobe Flash software. I've noticed there is the free "Flex" SDK. What's the difference? Would I be able to develop a flash game using the free Flex SDK and submit it to a game portal in the same way I would if I de...

OpenFeint with GameCenter really that easy?

I was reading this: http://www.openfeint.com/ofdeveloper/index.php/kb/article/000089, and it seemed to make out that the implementation of GameCenter with OpenFeint was as simple as adding one plist to the project (after setting up achievements / leaderboards). But is this really the case? I've just implemented this in my project now and...

Sliding AABB collision - getting stuck on edges

I'm working on a 3D tile based game and I'm using AABB collision detection. For every cube that the player is intersecting, I find the axis along which the player is intersecting the cube the least, and push the player out of the cube along that axis. Depending on the order that the cubes are checked in, this can cause problems when sli...

Best way to code a real-time multiplayer game

I'm not sure if the term real-time is being misused here, but the idea is that many players on a server have a city producing n resources per second. There might be a thousand such cities. What's the best way to reward all of the player cities? Is the best way a loop like such placed in an infinite loop running whenever the game is "liv...

Skybox vs Skysphere

What are some advantages and disadvantages between the two. Especially for something like a 3D game. ...

How to pull out individual sprites from grid of sprites ?

Hi I have sprites image, which contain set of sprites. i want to pull out each sprite from grid. I know that we have to split them through their pixels positions. But i think its not an easy task and time consuming. so is there other way or tool to get thier pixel position to retrieve images ? Thank you , Srinivas ...

Creating a game with multiple screens ?

Hi all, Just scouting for ideas here, but what would be a good way to implemenent mulitple screens in a game. I am thinking of a 2d game where when the player hits the edge of one screen it scroll to the next room. Thanks all, Martin ...

Finding a suitable 2D graphics API

We are in the first stages of making a 2D game at the moment, which will focus on destructible environments and objects. However, we have already encountered serious problems with the choice of the right graphics API At the moment, we use SDL - but the problem we see with it is that it isn't really performant, and has no hardware-accel...

LAN Development in XNA

Hi, I'm looking at developing a LAN-Only game as part of my coursework at university, however only own 1 computer. Reading around the internet, it seems to be possible to develop such a game by utilising a vmware image and installing all the appropriate pre-reqs on that, then using NetworkSession.Create(NetworkSessionType.SystemLink...

Programming a game controller

Hello, I looking to use a controller to operate an underwater robot. I would like to use a joystick with several buttons. I would like to program a pic and make my own circuit board. I am not using a computer. Where do I look to for help on programming a pic? Thanks, Cory ...

SFML window resizing events blocking the main thread

I just started using the SFML library and its fantastic. However when resizing a window by dragging the corner with my mouse i don't get the resize events until i release the mouse. This means i can't update my graphics until the mouse is released (game loop is on the gui thread) and is also causing a massive flood of events to come thro...

Scalable video game graphics

I'm looking to make a relatively simple game using solely graphics primitives (Arcs, Lines, Polygons, etc.). I started doing this in C# by drawing to a Panel, but right now I'm hung up on how all the scaling works in terms of keeping the proportions the same when changing resolutions. Does anyone have any advice and / or tips on how to ...

print a string in an external application (python 3.1)

Suppose I have a game and a python script running. In this game, to speak you just type whatever you want and hit enter. This python script has a button on it that I want to output a predefined string into the game, and hit enter automatically (essentially, the button causes the character to speak the string). What would be the easiest w...