Wanna Try This Game?

I actually posted a thread about this game a while ago. That topic didn’t really take off and get good replies. Basically, I decided that the robot programming wouldn’t require three people. So we decide to do a side project and make a game in C++.

It will be split in two zip files. The first contains all of the source files and headers. The second contains all of the resource files(images etc), and VC++ project files if you can’t set up one yourself.

To control bomberman (WASD movement, and first mouse button fires)

To control the lil tank (arrow key movement, and O fires) The tank is currently has no aim with the mouse. The game isn’t really designed to me multiplayer friendly on the same machine.

If you want to build the project yourself, create an empty VC++ workspace, link ddraw.lib, dinput8.lib, dxguid.lib, and winmm.lib, and add all of the source and header files in the project. Note, you need DirectX8 or higher.

If it’s not too obvious, FPS means frames per second. Currently we are using page flipping and its limited by your monitor refresh rate. That why you Radeon 9700 Pros(whom I envy) are still running less than 100 FPS. If I take off that limiter and DirectDraw supports no VSYNC your machine, I’m sure it would be over 10000 FPS easily - no added zeros. Also, the number on the left side of the screen are just the number of projectiles currently on the screen/are active. The health bar only goes down when bomerman fires - he is the current sprite set to show health on the screen. If you have any feedback, suggestions, or questions, about the code. Please tell me or ask.

robogame1.zip (24.9 KB)


robogame1.zip (24.9 KB)

Here is the other .zip file. By the way. If I wasn’t clear, all of the files should be extracted into the same directory. If you really want to run it, and can’t compile it. I might post the .exe. I don’t know if it will fit under the size limit for files in this forum.

By the way, the one Uber-cool vote was me.

robogame2.zip (98.5 KB)


robogame2.zip (98.5 KB)

sounds cool, but I don’t have any compiler’s on my pc

Unfortunately, I can’t upload it here. The exe is 635kb and it zips to 192kb. I can’t put a file that large here. I also don’t have any webspace right now to put it on a give you a link. If anyone else wants to compile it and post the executable on theirs, you’re welcome to. If you have the exe you still need, sprites2.txt, mastersprite.bmp, bullet.bmp, health.bmp, ASCII.bmp, Saito Hajime.bmp, and cursor.bmp in the same folder(if you double click on the file). If you run from the VC++ workspace, you need to have it in the same folder as the source files.

Error - Could Not Initialize Game!!!

gamelog.txt:

Program Execution Start:
Fri Feb 21 12:08:03 2003

CGraphics::LoadResources() - Could not open sprites2.txt
CGraphics::Init() - Could not load sprite information file!!!
CGame::Init() - Could not initialize graphics!!!
Run time is - 27
Return code is - 0

There is no sprites2.txt in either zip file.

If you build it as a release exe instead of a debug, it’s only ~188k and compresses to ~88k. Just a thought. Since you haven’t applied any kind of copyright/copyleft to it, I don’t want to upload a build for you unless you say it’s OK.

I, too, get the same sprites2.txt missing error.

To everybody else: please note that this game has no connection to RoboEmu, RoboGUI, RoboCon, RoboIDE, or any other program in the RoboTools package. The naming, as far as I know, is purely coincidence.

Lol…sorry. Here it is. Just put this in the same folder as all the other crap.

EDIT: Wow, I just noticed the naming similarity myself too. Sorry about that. I’m sure if we actually finish it, we will rename it to something else. Our team is actually called the Ohm Boyz right now. I think I’ll get the Ohm into the name.

sprites2.txt (207 Bytes)


sprites2.txt (207 Bytes)

Pretty cool so far.

BTW, move your guy to the top left and it crashes. I’m thinking it’s something with the collision detection.

Top left? I’m sure he’s been there…and it didn’t crash on me…You mean the top right? I know he/it crashed there before, but I thought I commented out that code. Oh well. I’ll check it later. Im going on a college trip in a few. Maybe you can look at my code and figure out what wrong ^_^.