|
I'm not being pushy, but when (approxamatly) do you think you will have the next game and article released?
I keep checking back here wondering if I see it, and I was just hoping for some estamated date so I wouldn't have to check back here so much.
Thanks,
~ Selevercin
If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone
else who learned to spell after 1976] blame it on
Robert A. Kolpek for U.S. Patent 4,136,395.
|
|
|
|
|
Selevercin wrote:
I'm not being pushy, but when (approxamatly) do you think you will have the next game and article released?
I keep checking back here wondering if I see it, and I was just hoping for some estamated date so I wouldn't have to check back here so much.
Hi Selevercin !
I had some damn deadlines at work and was covering a collegue that went on vacation (he is already back, finally !), and that had taken a lot from my spare time. Since my games don´t pay my salary, I need to establish some priorities. I´m with some free time now and working on my new game/article (it´s called RaceX). I´m trying to publish it before 22th juny (when my vacation starts), so expect it to be released in a couple of weeks (2, maybe 3).
regards
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
I've gone sending to outer space, to find another race
|
|
|
|
|
Mauricio Ritter wrote:
so expect it to be released in a couple of weeks (2, maybe 3).
That's great! I'll check back around then, then!
If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone
else who learned to spell after 1976] blame it on
Robert A. Kolpek for U.S. Patent 4,136,395.
|
|
|
|
|
Hmm.. I don't believe we need more game code on CodeProject.
I mean the DirectX API is not that complex and is actually pretty easy to use to bang out a game engine.
It would be nice to have things like collision, bullet code, and physics routines posted. But I think those items might be outside the scope of CodeProject and better suited for a GameDev web site.
I'm not bashing just suggesting.
-CodeTriCk
|
|
|
|
|
First of all, Mauricio, thank you SO SO much. This is a WONDERFUL example and exactly the kind of thing I was looking for to start learning DirectX.
Second of all, I've been having way too much fun with the code.
I'm working on some new screens, effects, weapons, configuration options, etc to help me better learn how the game works and how a game in general is put together. As I've gone through the code I've found quite a few things you can play with for more interesting effects. For instance, I've currently got a list of defines at the top of winmain.cpp:
#define STARTUP_WEAPON_MAX 0
#define STARTUP_WEAPON 0
#define STARTUP_SHIELD 50
#define STARTUP_LEVEL 0
#define STARTUP_SHIPSTATE 0
#define STARTUP_LASERAMMO 100
#define STARTUP_PHOTONAMMO 0
#define STARTUP_SCORE 0
#define SHIP_DAMAGE_DECREMENT 20
#define AMMO_LASER_INCREMENT 40
#define AMMO_PHOTON_INCREMENT 25
#define SHIELD_INCREMENT 10
#define MAX_SHIELD 50
#define SCORE_INCREMENT 100
#define LASER_DELAY 400
#define PHOTON_DELAY 680
The descriptions are easy enough to understand what they adjust. Still, all you really need to play with (in winmain.cpp) are the following:
In MainWndproc go to "case VK_RETURN:" and a little further down the comment: "// Reset the score counter, level, ship state and ammo" There's your starting variables.
In DrawShip check out:
if (iShipState == SHIP_OK &&
pExtra != NULL)
{
int iType;
iType = CheckHitExtra();
switch (iType)
{
case 1:
iPhotonAmmo += AMMO_PHOTON_INCREMENT;
if (iPhotonAmmo > 999)
iPhotonAmmo = 999;
SndObjStop(hsoGetExtra);
SndObjPlay(hsoGetExtra, NULL);
break;
case 2:
iMaxWeapon++;
if (iMaxWeapon > MAX_WEAPONS)
iMaxWeapon = MAX_WEAPONS;
else
iWeapon = iMaxWeapon;
SndObjStop(hsoGetExtra);
SndObjPlay(hsoGetExtra, NULL);
break;
case 3:
score += SCORE_INCREMENT;
SndObjStop(hsoGetExtra);
SndObjPlay(hsoGetExtra, NULL);
break;
case 4:
iLaserAmmo += AMMO_LASER_INCREMENT;
if (iLaserAmmo > 999)
iLaserAmmo = 999;
SndObjStop(hsoGetExtra);
SndObjPlay(hsoGetExtra, NULL);
break;
case 5:
iShield += SHIELD_INCREMENT;
if (iShield > MAX_SHIELD)
iShield = MAX_SHIELD;
SndObjStop(hsoGetExtra);
SndObjPlay(hsoGetExtra, NULL);
break;
}
}
Also, back in MainWndproc, look for "case VK_SPACE:" and move to the bottom of that case and you'll see:
if (iWeapon == 0)
SetTimer(hWnd,1,400,NULL);
else
SetTimer(hWnd,1,680,NULL);
Mine looks like:
if (iWeapon == 0)
SetTimer(hWnd,1,LASER_DELAY,NULL);
else
SetTimer(hWnd,1,PHOTON_DELAY,NULL);
which will let you tweak the firing delays.
Have fun and great game!
Matt
|
|
|
|
|
Matt Philmon wrote:
First of all, Mauricio, thank you SO SO much. This is a WONDERFUL example and exactly the kind of thing I was looking for to start learning DirectX.
Thanks for your reply and tips !
I´m currently working in a race game that will be posted here pretty soon. The code is more structured than Invasion... as you can see the game doesn´t use much classes and stuff (I was learning C++ when create Invasion... it was 1998).
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
|
|
|
|
|
Hi Mauricio
My friend has got really addicted to your game. She says she would like to have have more lives. I dont want to modify the code [it won't be an easy tak at all!!!]
Can you please add 3 [maybe even 5] lives, so that people have more of a chance?
Regards
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Well... I´ll give you the cheat code (this is the first cheat code that needs a recompilation of the game )
1) Open the UFO.cpp file
2) go to Line 77
3) Where you find
iExtra = 0;
change to
iExtra = iPercent > 60 ? 5 : 2;
This should give her more change and some extra weapons.
Mauricio Teichmann Ritter
Brazil
mauricioritter@hotmail.com
|
|
|
|
|
Thanks Mauricio, I'll try that out!
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
YIPPPEEEE!!
Finally I managed to download that HUGE SDK and re-compile the program. Now I get lots of S and W blocks. Of course the fun is kinda ruined, so I am thinkin of going back to the un-cheated version.
Thanks again Mauricio.
Nish
p.s. Great 3D rendered pic of Bob!
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hi !
Pretty cool ! If you could in the future make a little tutorial about how to begin doing things like that ( I mean... it´s quite difficult to get started with that things always try to compile that... this is old... or...).
Thanks a lot, keep on the good work !, Bye !
Braulio
|
|
|
|
|
Fun! My son's gonna love it!
How long did it take you? To impress my son I told him I could, theoretically, make a game for his new XBox. He said ok, do it. I figured those games took many people several years to develop. So I told him maybe after I retire I will make him one. But you have given me new hope. I want to be my son's hero. I'm tired of hearing him say he wants to grow up to be be like Daddy.
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
I think that it doesn´t take much time if you know the DirectX technology well. Since I was learning DirectX when I write this game, it take about 2, maybe 3 months (as far as I remember... it was 1998). The worst problem that I have was with the graphics (i´m a programmmer), and it take quite some time to create the animations (the explosions take me days and days). Anyway I think it was a good exercice !
If you need some help when you start to develop, just mail-me !
Mauricio Teichmann Ritter
|
|
|
|
|
I have a half finished DX Asteroids game, and I had the same problems. I found an animated gif of an explosion online and seperated/tiled it. I got someone else at work to render me spaceships and asteroids. Now he's gone, and the project has stalled - I need to add some alien space ships or something to add variety.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Having somone else to create the graphics is great ! (And avoids you to create "pyramid like" space ships, hehehehe)
If you want to create explosions, you could use 3ds max... it´s not so difficult (if you have patience ).
Anyway I´ve improved my graphic skills since 1998 and in the next article the graphics will be better.
Mauricio Ritter
Mauricio Teichmann Ritter
|
|
|
|
|
My own Direct X Space Invaders also got put aside because of crappy graphics. I can't draw to save my life. I'm thinking of starting a breakout kind of project, because I think even I can draw some coloured bricks
Michael
|
|
|
|
|
Cathy wrote:
I want to be my son's hero. I'm tired of hearing him say he wants to grow up to be be like Daddy.
[Warning a sexist comment]
I would be worried if my son wanted to be like his mom (if I had a son, or was married.)
[sexist comment over]
Actually I have always wanted to be more like my mom than my dad. Not in a physical way of course, but in terms of business sense, success and her attitude. She would be my hero, if I believe in hero worship
You do know that real heros are unintetional and unwilling heros? People who want to be heros are approaching the whole thing in the wrong way.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
Do you Sonork? I do! 100.9903 Stormfront
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
|
|
|
|
|
Paul Watson wrote:
I would be worried if my son wanted to be like his mom (if I had a son, or was married.)
He used to try to put on my bras. Thank goodness he outgrew that!
Paul Watson wrote:
You do know that real heros are unintetional and unwilling heros? People who want to be heros are approaching the whole thing in the wrong way.
You could be right. Rodney does not try at all.
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
Cathy wrote:
He used to try to put on my bras. Thank goodness he outgrew that!
Yikes!!!
yeah, thank goodness, thank evil-ness, thank the pope and thank Bill gates.
I am glad he outgrew that too.
I wouldnt want any 12 year old boy to be interested in wearing bras.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I should add here so that I don't hurt anyone's feelings that I would still love him. He would still be just as precious to me. I just think that if he were inclined that way, life would be a lot harder for him. And as his mom, I want nothing but the best for him.
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
All this talk of bras is making me check what site I am actually visiting...
|
|
|
|
|
Cathy wrote:
I'm tired of hearing him say he wants to grow up to be be like Daddy
What is wrong with being like daddy?
Zac
"If I create everything new, why would I want to delete anything?"
|
|
|
|
|
I want him to want to be like me too.
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
I can understand that, but realize that he will be his own person (somewhat of a combination of both of you) no matter what you do. Just raise him right, and feed him any information he requests (hmmm . . . at 12 I was curious about calculus;) and pretty soon, both you and your husband will want to be like him.
Zac
"If I create everything new, why would I want to delete anything?"
|
|
|
|
|
Zac Howland wrote:
pretty soon, both you and your husband will want to be like him
Cathy
Life's uncertain, have dessert first!
|
|
|
|