game-development

Ratio of multipass textures compared to the color map

I have 4 textures used in a multi-pass effect with the color map at the highest quality - which for this example is 512x512. Currently the Normal, Specular & Parallax maps are the same dimensions. The additional maps are taking a significant portion of VRAM. This seems incredibly wasteful. My intention is to reduce the size of the multi...

Windows Game Loop 50% CPU on Dual Core

The game loop alone is using 50% of CPU Usage, I haven't done any rendering work yet. What i'm doing here? while(true) { if(PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { if(msg.message == WM_QUIT || msg.message == WM_CLOSE || ms...

Finding a Position on a 2D Map that meets several criteria

Hi, as my personal project i develop a game to which users can join at any time. I have a tiled worldmap that is created from a simple Bitmap which has resources at random positions all over the map except for oceans. When a player joins i want to create his starting position at a place that has at least 1 tile of each of the 4 resource...

Game data across network

I'm designing a game where players are programmed bots competing in a programming contest. The bots can be programmed in any language - Java, Ruby, Python, C#. I'm looking for some way to transmit game data across the network or some way by which the game server can talk to the bots. What would be a better choice for this? Should i use X...

How to build a game entity list custom data structure

I'm writing a game in Flash (player 10) and need to come up with a good way to manage the list of objects/entities/actors in the game (player character, obstacles, enemies, etc.). It has these requirements: Iterable Objects addable and removable while iterating. Argument to remove() function would be the object to remove, not an index...

How to make the speed (frame rate of your game) the same across different PC?

In our school, it is common to build games as class projects in implementing the different concepts we learn from our computer science classes. Now we developed our games in our machine and everything seems to work fine, game speed is normal and so on. Now, when we try testing our games in our school's computer, or when our professor tes...

FAMES or AMES for Flash development? Open source alternatives to Flash CS4?

Hi, A brief preface: I'm in a game design class where our project for the next 4-6 weeks will be to create a Flash game. The group is 5 people, one of whom is a digital artist in another department. Our digital artist will be supplying images/music where appropriate, but won't be using Flash CS4 (probably Photoshop or another image ed...

Shockwave games in Facebook?

Hi guys, simple question: is it possible to run games made with Adobe Director (shockwave player) in Facebook? Thx.- ...

Interfaces, static classes problem

I am currently moving all my Game code to another package so that I can simply reuse it when I create another similar game. I am having some problems with this though. public interface Sprite { ... } abstract class AbstractSprite implements Sprite { ... } public interface Builder<T> { public T build(); } class GameObjectImpl ext...

Getting started at Game Development

Hello, I want to get started at game development. I have read a lot of articles, but didn't get far. I'm studing computer science and have experience in C++, one semester in Java, .NET, (even assembler, but I won't start with that^^) I want to develop "small" games, like Tetris and later on some kind of jump and run. I would like to wo...

Best language and framework for a text based game like mafia wars

Which do you think is the best language/framework to develop a text based adventure game like Mafia wars? I am proficient in Java/JavaScript and have dabbled in Python, Perl, Erlang, Scheme. Also, any pointers to articles relating to this is very welcome. I am starting from scratch and hence have no constraints. This is a hobby project ...

Server Programming - Simple Multiplayer Game - Which protocol and technologies?

Hi All, I have a year's experience writing client code but none with server stuff. I want to restrain the question a bit so I'll simplify what I'm trying to achieve. I want to write server code such that two clients (Browser or iPhone / Android) can connect, when two player have connected they see a timer count down to zero. The clock ...

Android P2P Multiplayer game (with a) XMPP/Google talk b) JXTA peerdroid c) other way)

Hi, I am an android developer and I made some board games. Now i want to make some of my board games multiplayer. I don't want to create and host my own web service, so i thought about P2P. The first thing i found was the XMPP protocol, however it's not real P2P, but if i can use the existing google talk service, i'm ready to go. Is th...

What direction should I take to improve my programming skills?

I've been attempting to learn programming (in C#) for a few years now. The problem I've had is that I'd know what I want to do (or what I want the program to do), but no idea on how to actually implement it. So I often wonder what it is I'm lacking. Is the mindset of a programmer somehow different, and I've yet to condition myself to tha...

How to start developing a social multi-player game on android

I'd be very keen to know how to develop a social game on android which includes 2 or more than 2 players. Let's say chess..for example or scrabble.How to begin? Are there any online resources or tutorials available on this subject? ...

opengl modelling rocket flame and vapour trails with particles

Does anyone have any guidance for coding an approximation for the particle stream coming out of a jet engine (with afterburner) in opengl using particles drawing using vertex buffers / 4f color buffers? I believe there are two aspects to this problem: The colour of the light as particles exit the jet engine as a function of temperatur...

Two iPhone Apps sharing information

I am building a series of games for the iPhone that are released in 'episodes' that are purchased separately. I'd like each of the Apps to share a small bit of information, but Apps seems to be sandboxed pretty tightly. Is there an official way for two apps to share information that doesn't involve hitting an external server? I only...

Content Manager in another class XNA

I have created a separate class (let's call it class2.cs for example) and want to use it as a level, in that when I call it, it will draw everything in one level for me. I'm having trouble getting contentmanager to work in class2. In the given Game1.cs, you can easily just go texture2d= Content.Load<Texture2D>("photo"); but I can't in cl...

Is Game Programming very different from normal programming?

By normal programming, I'm referring to application programming (which is all I'm familiar with at the moment). My goal is to make games, and I wanted to know if the path was different than other programming paths at the beginner level. Or perhaps it's too early for me to worry about that at this stage? ...

Implementing a game for the web using PHP/Javascript?

I need some suggestions on how to start off with this one. My end goal is to make some visually striking wheel that can revolve a set of pictures and stop randomly at some picture and display some text in the center of the wheel. With the number of AJAX libraries out there, I am pretty sure someone must have done something similar. Does ...