game-development

Finding the intersection of two vector equations.

I've been trying to solve this and I found an equation that gives the possibility of zero division errors. Not the best thing: v1 = (a,b) v2 = (c,d) d1 = (e,f) d2 = (h,i) l1: v1 + λd1 l2: v2 + µd2 Equation to find vector intersection of l1 and l2 programatically by re-arranging for lambda. (a,b) + λ(e,f) = (c,d) + µ(h,i) a + λe = c +...

2D platformer gravity physics with slow-motion

Hi all, I fine tuned my 2d platformer physics and when I added slow-motion I realized that it is messed up. The problem I have is that for some reason the physics still depends on framerate. So when I scale down time elapsed, every force is scaled down as well. So the jump force is scaled down, meaning in slow-motion, character jumps v...

What is an efficient way to find a non-colliding rectangle nearest to a location

For a 2D game I am working on, I am using y axis sorting in a simple rectangle-based collision detection. This is working fine, and now I want to find the nearest empty rectangle at a given location with a given size, efficiently. How can I do this? Is there an algorithm? I could think of a simple brute force grid test (with each grid t...

Making the sound for a Flash game.

Hu guys, I'm developing a Flash game, and I'm interested in knowing what would be the process of making sounds. I want to make my own sounds, if possible, and not to download some premade standard (and possibly lawsuitable if they are not "totally free") sounds from the web. So.. I've read that a synthesizer could be useful.. but, I re...

Real-time control of Windows Console game

Hi, another quick question, I want to make simple console based game, nothing too fancy, just to have some weekend project to get more familiar with C. Basically I want to make tetris, but I end up with one problem: How to let the game engine go, and in the same time wait for input? Obviously cin or scanf is useless for me. ...

Correct software-engineering approach to make Lua bindings to my C++ classes ?

I'm trying to figure out the best way to register my C++ Classes constructors with Lua (from a software design perspective, not a coding perspective) How shall I do this ? My Ideas: 1) Make some kind of "init Lua bindings" file which binds each of the C++ constructors that I want to have available in Lua ? (problem: this file would ...

From the web to games

Hey guys! I'm a basic web developer. I know PHP, a little bit of Python and Ruby. JavaScript as well [some stuff]. I'm not a hardcore developer. I know what it takes do develop most of web cases. Now, I have this desire to go deeper and start developing games. I know it sounds a huge leap, but that is why I'm asking here. I already hav...

Programming Games for iPhone

Is it best to program a game for the iPhone in Objective C or in C++. What language would a game like Flight Control be written in? What format should graphics be in to show properly and load quickly on the iPhone? ...

c# mini-game: menu screen, how to achieve?

Hi, I am making simple graphical game in WinForms and currently I would like to have a menu displayed when the game starts. My only problem is that I am not sure regarding the structure of the application itself, this is what I have so far: 1) To have a Menu form and Game form. When New game is selected, create Game form and dock it to ...

How to develop game bot for unreal tournament?

The idea is to develop my own bot to test the game's behavioral rules, in my case I have set on using Unreal Tournament (1999 or 2004 version) as a proof of concept. Initially, I would like to test the CTF type of mode. What I set to achieve is to have a bot, preferably in Java, that is fully controllable, that is, there is no AI but mec...

Should I use RMI for Java multiplayer game?

I'm building a Monopoly game in Java and I want it to be able to support games over the net (the point was so me and my friends over in the US of A could play). Networking is a whole area of programming I have yet to enter so I have been finding it quite hard to decide how exactly to pull it off. In general, I felt that the correct way ...

Game Development: Should I program my levels or interpret them from a file?

The title says it all... The game will be written in C++ Programming: enemies.puch_back(new DefaultEnemy(200, 300, 3, 5)); enemies.puch_back(new DefaultEnemy(500, 400, 4, 5)); enemies.puch_back(new DefaultEnemy(300, 420, 3, 15)); enemies.at(2).createAward(new Key(4), "pling.wav"); Or Interpret them from a file like this: DefaultEnem...

How would i go about playing a video file in Direct 3D

Hi, i recently wrote (with the help of my programming instructor) a 2D Graphics Library in C/C++ using Direct 3D and i have been playing with it for about a year now. I want to start a small game of my own and i wanted to put in cutscenes and animated logos. I was wondering if there was a simple solution so i could simply have a method l...

making game by java programing language

i ma working on game as assignment I've never really programmed a game before, wtih java programing language, so I'm completely new … ame across very little information on starting game development in java programming a … I'm looking to write a game with java code programe that also put the data to a file.can any one post me some java...

Resources and examples for developing games on the iPhone

All, I'm about to embark on the adventure of developing a game for the iPhone. I have never programmed games before, and have never used Objective-C either - it's all new. I have, however, done sufficient amount of programming (C# recently, C long ago) and am comfortable with programming, frameworks, SDK/API etc. What resources would y...

Player rating for game with random teams

I am working on an algorithm to score individual players in a team-based game. The problem is that no fixed teams exist - every time 10 players want to play, they are divided into two (somewhat) even teams and play each other. For this reason, it makes no sense to score the teams, and instead we need to rely on individual player ratings....

Selecting an best target algorithm in arcade/strategy game AI programming.

Hi All, I would just like to know the various AI algorithms or logics used in arcade/strategy games for finding/selecting best target to attack for individual unit. Because, I had to write an small AI logic, where their will be group of unit were attacked by an various tankers, so i am stuck in getting the better logic or algorithm for...

Rotating 3D object on it's axis as oppose to the world axis - XNA

Hey all, i've been working on this small project in XNA the goal is pretty basic i have a 3D model which pops up somewhere on the screen, the object is suppose to rotate on it's y axis, The problem is: what happens instead is that the models rotate around themselves and also start to orbit the middle point between themselves and the 0,...

Game development, which way to go

Hey, Ever since I started playing games, I wanted to develop my own, simple and later more complex game. At the moment I earn my share with programming web applications and doing some simple game development in my free time. As for my programming experience. I have good knowledge of almost anything web related (PHP, AJAX, JS, etc.). T...

When to Normalize a Vector?

I am learning XNA and in almost all of the educational kits found on http://creators.xna.com/en-US/. I always see a call to Normalize() on a vector. I understand that normalize basically converts the vector into unit length, so all it gives is direction. Now my question is When to normalize and what exactly does it help me in. I am doi...