game-development

(Game Engine) Framework Design

Hi there, I am currently working on 2D browser game. After putting the ZendFramework away, my team and I decided to write our own framework. Now we are helpless, because none of us has ever developed anything similar, except CMS frameworks etc. The language is PHP and the database driver used for it is MySQL(i, PDO, etc) Can you giv...

Texture atlas software

What is a good tool to make texture atlases with? I have a 2d game and I am going to need to shove a bunch of small textures into a bigger one for performance reasons. I know of some that do this job for fonts, but what I need now is one for images for my sprite animations. Any ideas on what would work best? ...

Programming Games and Applications/OS

Hello, I am 13 years old and am interested in programming for games. I am currently building an iphone game with Shiva using Lua as the scripting language. After that, I am not sure what I should do or what languages I should learn. My goal is to keep building games but I also want to build my own game console. Of course, that wont be fo...

Beat em' up game space management ?

Hello, I am in the process of making my 2D engine for a Beat'em Up game (Castle Crashers is what I call Beat'em Up or Brawler kind of game ). I will support 2D sprites and 2D particle emitters. This is all done in the engine now. But I have come to an issue that I would like to ask for advice: It's about "space" management, what I tho...

How does JavaScript memory work in browsers?

When building advanced JS-interfaces and games I've found that I have to dig deeper in to how browsers handles memory for JS. My experience with memory and JavaScript is that the memory gets glogged (and makes animations and calculation slow/lagging ) when: There is alot of JS-generated content on the page There is alot of graphics (i...

How to check if memory has aready been released in Destructor?

I have a simple tank wars style game using the allegro open source library. In my tank class, I initialize arrays of pointers to bitmap objects to 0. Then I create new objects with an allegro function create_bitmap which allocates the memory and initializes it. Then I go about my business as usual. The problem is, when I go to releas...

Making a 2D engine: compiling necessary libraries with the engine instead of the game

I'm making a 2D engine in C++, and I want to be able to supply a .dll and a .lib so that games can just include those and everything is fine and dandy. I've looked at how Ogre does it, and it results in ugliness like this: #ifdef __cplusplus extern "C" { #endif #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 INT WINAPI WinMain( HINSTANCE hIn...

Flash games hack, score is 49700?? How to improve flash games security?

I have 2 flash games (written in as3). Both the highscore value being hacked. The normal range of each game score is not more than 5000 (normal users, will only get 2000 - 3000 points). My current method of anti-hacking is: After finish the game, flash will use post parameters send: username=mike&score=2000&hash=md5(secret . username . ...

Runge-Kutta (RK4) integration for game physics

Gaffer on Games has a great article about using RK4 integration for better game physics. The implementation is straightforward but the math behind it confuses me. I understand derivatives and integrals on a conceptual level but I haven't manipulated equations in a long time. Here's the brunt of Gaffer's implementation: void integrate(S...

C# ASP.Net BlackJack/CardGames Reference

Hello. I want to build a card game in C# ASP.Net. Something like blackjack or solitaire. Has anyone any ideas on how to go about doing this or any references I could refer to? Books on card game designs would be a good help. Help greatly appreciated. Cheers. ...

Game Maker Language new line

I am writing a game maker script and wanted to know how to make a message appear on the following line. ex. show_message("Hello" something +"World") outputs: Hello World ...

Game Maker Language calculating proper average

Here is my code: var num, totalNum, averageNum, numItems, msg; msg = ""; totalNum = 0; numItems = 0; while(true) { num = get_integer("Please enter a number. Enter -99 to quit.", "type here"); totalNum += num; numItems += 1; if (num == -99) { totalNum += 99; msg += "Total is: " +string(totalNum) +"#"; averageNum =...

Tic Tac Toe Design Pattern

Hey everyone, I was wondering if I could get your thoughts and advice as to what would be the best/most advantageous design pattern for a networked Tic Tac Toe game? I have been looking at the following design patterns: Factory, Abstract Factory, Singleton, Prototype, and Builder. In your experience, which would be the best to use, an...

questions about game development from web developper's point of view.

hi folks, i've been making web app's and working with various server side language like php, ruby, perl for a while now. I've always been curious about game development, it's actually what I set out to do but I ended up in web development. I am trying to transition in to GD, but I cannot help see games from a web development POV. GD = G...

Bullet Physics - Apply Torque Impulse in Body's Local Space

Hello, I'm currently evaluating the Bullet Physics Library for a 3D space game I'm writing using C++ and Ogre3D. I've gotten Ogre3D and Bullet integrated nicely by deriving from btMotionState and plugging in my SceneNodes, but now I'm having a lot of trouble calculating what values I should pass to btRigidBody::applyCentralImpulse and b...

UDP real-time games in Flash/Flex available Open source RTMFP implementation

Are there any examples of using the Flash 10 beta RTMFP UDP based protocol to build real-time Flash games. The RTMFP examples so far seem to focus on P2P networking between flash clients does anyone know of any examples of traditional client/server UDP based communication over RTMFP. Does anyone know the ability of RTMFP to do NAT firew...

Game Programming - communication between game objects in 2d

Hello, recently I have been trying my hand at coding a game in C#. I'm not using XNA for this, as I thought I would learn more if I coded the game from scratch (although I am using a multimedia engine). I'm trying to design a 2D RPG game - a bit ambitious I know, however I have a reasonably well understanding of at least the basic parts...

CGrectContainPoints & Touches queries

Im getting straight to the point. I have static coordinates stored as array and i want to compare this coordinates with user touch. //touch handling UITouch *touch = [[event allTouches] anyObject]; CGPoint touchPoint = [touch locationInView:touch.view]; //comparing touches if (CGRectContainsPoint((CGRectMake(x1, y1, w, h)) , touchPo...

How to control sound in a pure DHTML game

I am looking into writing web based games using just Javascript, HTML, and CSS. It seems like there are large classes of games could be done using these technologies, except for one thing. I can't really find a good way of controlling sound, the only thing I see that it works is to embedding a control of some sort into the page. Is the...

What 3D graphics framework should I use for a real world game engine?

Hello, I'm a C++ programmer with very extensive server programming experience. I'm however fairly bored at the moment and I decided to tackle a new area: 3D game programming, for learning purposes. Additionally I think this learning project may turn out to be good resume material in the future should I decide to work in this area. Inste...