game-development

Multiplayer game to demo Wi-fi

Hi guys I need an idea. So in Germany we have built up a huge Wi-fi system and usually you have to login to the system to surf the web. As a gimik we want to add a multiplayer game so without having to pay for usual internet they can play a webbased multiplayer game. What multiplayer games do you know. It just has to be 2 player really....

Developing XNA outside of Visual Studio

There are some alternative IDE for developing XNA games? By example, can I to integrate XNA in #develop? ...

I like to implement Flex to Server comet / long polling for games

I need to try and implement port 80 flex games to server method. I like to ask if someone already did it before or it is possible to manage flash/flex multi user games with long polling / comet server ? ...

Game loop that won't stop waiting for user input

I've started fiddling with C to improve my programming skills, and decided to try and implement a Tetris game. Nothing too fancy, it'll run on the console. I never implemented a game that keeps running despite user input, and didn't figure out I'd have to deal with this problem until I started thinking about the game algorithm. Googl...

XNA: Preventing a method from returning

I want a method in a DrawableGameComponent class to not return until a particular condition is met Say I have this class (snippet from a DrawableGameComponent class): public override void Update(GameTime gameTime) { if (moving && pixFromLastMove <= distanceToMove) { position += velocity; ...

What type of game logic would this be called ?

So lets say there's a game that has a 'life bar' that consists of theoretical levels. As the user performs specific actions, depending on accuracy of their actions, the life bar grows at a corresponding speed. As it grows and goes into next levels, the criteria for desirable actions change and so the user now has to figure out what thos...

How to make a shareware program with a free demo

I have a game that I'd like to sell with the following system: give away a demo (say, with the first few levels) and sell the full version. I'd like to make the transition to the full version as seamless as possible for the user. I've never sold anything before online, so I'm not sure how that would work (even if there were no free demo)...

How to program a RPG game in C++ with SDL?

I want to know how to program a 2D RPG game in C++ with SDL. I searched, but I haven't found anything good. Many of the articles were too basic and didn't delve into anything practicical. Can anyone help give me some articles, free books or other resources so I can learn how to program a RPG using C++ and SDL? EDIT: I don't need do...

How do you model application states?

I'm writing a game, and I want to model its different states (the Game Maker analogy would be frames, I guess) in a clean, object-oriented way. Previously, I've done it in the following way: class Game { enum AppStates { APP_STARTING, APP_TITLE, APP_NEWGAME, APP_NEWLEVEL, APP_PLAYING, APP_PAUSED, APP_ENDE...

C++ Memory Management for Texture Streaming in Videogames

Hi, this is a "hard" question. I've found nothing interesting over the web. I'm developing a Memory Management module for my company. We develop games for next-gen consoles (Xbox 360, PS3 and PC... we consider PC a console!). We'll need in future, for our next games, to handle texture streaming for large game worlds that cannot be load...

How to use GL_REPEAT to repeat only a selection of a texture atlas? (OpenGL)

How can I repeat a selection of a texture atlas? For example, my sprite (selection) is within the texture coordinates: GLfloat textureCoords[]= { .1f, .1f, .3f, .1f, .1f, .3f, .3f, .3f }; Then I want to repeat that sprite N times to a triangle strip (or quad) defined by: GLfloat vertices[]= { -100.f, -100.f, ...

Palette Animation in OpenGL

I am making an old-school 2d game, and I want to animate a specific color in my texture. Only ways I know are: opengl shaders. animating one color channel only. white texture under the color-animated texture. But I don't want to use shaders, I want to make this game as simple as possible, not many extra openGL functions etc.. And t...

Gaming Development vs Corporate Software Development

I'm learning C# right now. In my second semester of it. I'm new to all of this. I tend to not like stuffy atmosphere's and want to enjoy my work. I'm not a "nerd" gamer type that spends all day playing games, though I enjoy them. Recently I just realized that some use .NET C# for game programming, though I'd likely need to get into c++ t...

Simple physics-based movement.

Hi. I'm working on a 2D game where I'm trying to accelerate an object to a top speed using some basic physics code. Here's the pseudocode for it: const float acceleration = 0.02f; const float friction = 0.8f; // value is always 0.0..1.0 float velocity = 0; float position = 0; move() { velocity += accelera...

Pygame equivalent for Ruby?

I was wondering if anyone knew of a PyGame equivalent for Ruby. I've seen Ruby/SDL and I'm looking for something a little more geared towards games. ...

In which cases should I close a TCP connection?

I'm currently writing a multi-process network game server (one gatekeeper process which tells players what games are currently running and allows them to create and join games, and a process per game instance). In which cases it would be useful for the gatekeeper to drop TCP connection to the client, and in which cases it should continu...

Non-programming application for 2d game creation

I'm looking an application for children to learn about how to create games. I don't want something as complex as Game Maker. I need it to show children an entry point to create games. ...

How to manage AI actions based on percentages

I am looking now for some time about how can a programmer simulate a AI decision based on percentages of actions for the final fantasy tactic-like games (strategy game). Say for example that the AI character has the following actions: Attack 1: 10% Attack 2: 9% Magic : 4% Move : 1% All of this is far from equaling 100% Now at first I...

Getting game stats from XBox Live and PSN

Is it possible to get game stats (who's playing, who wins, etc) from games that are played on XBox Live and PSN? Are there any additional constraints, such as: Does the game need to support some additional API? Do I need to have direct access to the games servers (consoles)? If Microsoft or Sony or even the game vendor provides the A...

What is the best free portable 3d/2d engine ?

Hello all i like to make very simple 3d/2d game for pc/mac/linux what is the best free 3d/2d engine for this ? i have no experience in game programming so i guess it have to be easy to learn please in c++ thanks ...