C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-05-2002, 11:19 AM   #1
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
Primary game build, feedback welcome

http://www.geocities.com/cfare2002/Ship.zip

I have a long way to go: scrolling, powerups, music, all the regular enemy ship patterns, etc. etc.

But i wanted to get feedback on what i have so far, 10 hits kill the enemy ship.

The enemy ship follows one of two patterns and swaps between then periodically.

I get patches of jerkyness, though i think its my machine rather than the code (though i have a lot of optimisation to do anyway), i'm interested in hearing if anyone else gets it too.

Edit: it seems the link doesn't work, if you copy it then paste into the address box in IE/netscape it should work.

Last edited by Clyde; 07-05-2002 at 11:33 AM.
Clyde is offline   Reply With Quote
Old 07-05-2002, 12:30 PM   #2
C++ Developer
 
XSquared's Avatar
 
Join Date: Jun 2002
Location: UWaterloo
Posts: 2,718
Make the animation go by time using GetTickCount() instead of by frame. I can't even play it on my pc, it lasts just over a second. According to my log file, i got 1198fps.

My system specs: P3 1GHz, 512MB SDRAM, GeForce3 Ti500 /w 64MB onboard DDR RAM, Win2k Professional
XSquared is offline   Reply With Quote
Old 07-05-2002, 12:31 PM   #3
C++ Developer
 
XSquared's Avatar
 
Join Date: Jun 2002
Location: UWaterloo
Posts: 2,718
Here's my log file:
Code:
Opening Error Output File (Log.txt):

Create BOB 0
Create BOB 5
Create BOB 5
Create BOB 7
Create BOB 0
Create BOB 6
The FPS is 1
The FPS is 1198
Closing Error Output File.
XSquared is offline   Reply With Quote
Old 07-05-2002, 12:33 PM   #4
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
eepas! Will do, im getting 75 fps, so i didnt think it would be a problem.
Clyde is offline   Reply With Quote
Old 07-05-2002, 12:40 PM   #5
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
Ok, done, frame-rate should now be capped at 75.
Clyde is offline   Reply With Quote
Old 07-05-2002, 01:36 PM   #6
C++ Developer
 
XSquared's Avatar
 
Join Date: Jun 2002
Location: UWaterloo
Posts: 2,718
Two problems:

1) If you close the program using ALT-F4, the program is not actually unloaded if you look in task manager.

2) For some reason, the ships, explosions and the gunfire are garbled. Its not the BMP files, because they look fine when I open them in PhotoShop. See the attached picture.
Attached Images
 
XSquared is offline   Reply With Quote
Old 07-05-2002, 01:50 PM   #7
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
Thanks for the heads up, when i run it from my PC, the art isnt garbled, hmm, and ideas what could cause that?

I'm not sure I can do anything about the Alt-F4 thing, since windows handles that, perhaps looking out for the Alt-F4 key press and preventing the game from running another frame would do the trick.

This art thing really is puzzle.
Clyde is offline   Reply With Quote
Old 07-05-2002, 01:53 PM   #8
.
 
Driveway's Avatar
 
Join Date: May 2002
Posts: 469
Only thing I can think of is not having it in the right directory
Driveway is offline   Reply With Quote
Old 07-05-2002, 02:04 PM   #9
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
I've tried something new now, could you test it see if the art is still bugged?

Its very odd, if i download the zip, extract it to a separate directory and run the game the art is fine.

The first thing i thought of was that I had changed the palette on my comp. but looking at the scrambled art it doesnt look like a palette problem.

Hmmm....
Clyde is offline   Reply With Quote
Old 07-05-2002, 02:04 PM   #10
Rambling Man
 
Join Date: Jan 2002
Posts: 1,050
Wow that didn't work too well at all. The first time I ran it the only thing that loaded on the screen was the lives and screen text. I used ESC to exit, and it worked fine with the blue fade out (pretty cool). Then I tried it again, and everything was the same with the loading. Except this time when I exit with ESC I got a bunch of memory errors and all of my Windows' folder were closed. Here are my specs: 500 mhz, win2k, 384mb ram, 4mb video card

And the log file:

Code:
pening Error Output File (Log.txt):

The FPS is 1
The FPS is 49
The FPS is 48
Closing Error Output File.
So obviously it appears as if it deals with the log.txt file.

Too bad because I really wanted to try out your game.
TechWins is offline   Reply With Quote
Old 07-05-2002, 02:05 PM   #11
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
eepas i'm terribly sorry for causing you these problems!

*is puzzled!*

The log file doesnt actually do much, at present, though it may prove the anser to finding this problem.

*scurries off to link the log file to everything*

My brother's PC is networked to mine so i tried it on his, and i get the garbled art problem, so atleast i can actually attempt to solve it.

I think the problem is the function i'm using to load the bitmaps into their respective surfaces, though its really weird that it works on my PC!

Last edited by Clyde; 07-05-2002 at 05:48 PM.
Clyde is offline   Reply With Quote
Old 07-05-2002, 04:36 PM   #12
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
Aha! Victory is mine!

The art should be ungarbled now.

Man, that was a battle, grrr *shakes fist at Andre LaMothe*
Clyde is offline   Reply With Quote
Old 07-05-2002, 06:08 PM   #13
C++ Developer
 
XSquared's Avatar
 
Join Date: Jun 2002
Location: UWaterloo
Posts: 2,718
The art looks fine now.

All you need to do is fix the problem where it doesn't close properly on ALT-F4.
XSquared is offline   Reply With Quote
Old 07-05-2002, 06:13 PM   #14
The Earth is not flat.
 
Clyde's Avatar
 
Join Date: Mar 2002
Posts: 1,420
OK, looking into it, what improvements to the enemy motion/firing would be good?
Clyde is offline   Reply With Quote
Old 07-05-2002, 06:23 PM   #15
C++ Developer
 
XSquared's Avatar
 
Join Date: Jun 2002
Location: UWaterloo
Posts: 2,718
You might want to make him avoid collisions, instead of look for them.
XSquared is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
20q game problems Nexus-ZERO C Programming 24 12-17-2008 05:48 PM
How to build a flexible Game Menu.. ThLstN Game Programming 1 12-13-2008 10:53 AM
Need book to program game into multiplayer... edomingox Game Programming 3 10-02-2008 09:26 AM
Game Programmer's AIM Circle: Join Today KingZoolerius66 A Brief History of Cprogramming.com 28 12-20-2003 12:12 PM
My Maze Game --- A Few Questions TechWins Game Programming 18 04-24-2002 11:00 PM


All times are GMT -6. The time now is 07:52 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22