The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => Miscellaneous Projects => Topic started by: Farabi on August 03, 2005, 02:48:50 AM

Title: Made a game
Post by: Farabi on August 03, 2005, 02:48:50 AM
Hai, I planed to made a game, please download the attachment. I need someone who able to made a 3D house picture, I have the model but if you able to model it or you have your own model please send me the .bmp or .jpg picture. I need 4 picture, rotated at 0 degree, 90, 180, and 270.

Im not planned this project as a commercial one, but if I sell it I will share you the profit.
If someone can made a human model as the main character I will made this game as a 2D action RPG.

So what I need is.
1. Modeller, you must use Pov Ray and anim8tor as the modeller.
2. Control programmer, you must use MASM for the control system.
3. System programmer, you must use MASM for the inventory and load save system. We will made it together.
4. Musician, use any tool you familiar and the format must be .wav.

If you interested I will send you the skeleton of MASM source code project by me, you will need to familiar with RadAsm.

Your help will be appreciated.
Error or crash on the attachment please tell me.

[attachment deleted by admin]
Title: Re: Made a game
Post by: ninjarider on August 03, 2005, 04:31:44 PM
dude i couldn't do the setup for the window but i can make a better rpg than what u have.
aim - bloodycyborge
Title: Re: Made a game
Post by: Farabi on August 04, 2005, 02:18:17 AM
Quote from: ninjarider on August 03, 2005, 04:31:44 PM
dude i couldn't do the setup for the window but i can make a better rpg than what u have.
aim - bloodycyborge

Is it crash on your computer? What if I help you then? I think I should have a partner. Im confused with all of the bug. Can I join you?
Title: Re: Made a game
Post by: Farabi on August 04, 2005, 06:36:53 AM
Here is another. I will finish the system first. I sudenly remember a game named galaga. I think I will try to made something like that first.
Here is the stable version, I think it will not crash anymore.

[attachment deleted by admin]
Title: Re: Made a game
Post by: ninjarider on August 04, 2005, 12:20:05 PM
most likly a segment of your code looks like this

.if (msg) == vk_a
    mov eax plane.x
    add eax, 1
    mov plane.x, eax
.endif

im not sure if i got that anywere near right.
create a global array of bytes and call id kd() if keys()

then change your code to something like this

.if (msg) == vk_a
    mov kd(vk_a), 1// either 1 or true// something to let u know that the key vk_a has been pressed
.endif

althou u have to track key-ups and key-downs

in your main loop you want something like this
.if kd(vk_a) == 1// true
    mov eax, plane.x
    add eax, 1
    mov plane.x, eax
.endif
Title: Re: Made a game
Post by: Farabi on August 05, 2005, 03:29:56 AM
Here. I have put the sound and the blast animation. Thanks for your code. No problem, I think I can handle it by my self. Im very appreciate your assistance.

And I hope You will assist me continously :tgrin:

[attachment deleted by admin]
Title: Re: Made a game
Post by: ninjarider on August 05, 2005, 12:06:15 PM
what r the controls for your game
Title: Re: Made a game
Post by: Farabi on August 05, 2005, 12:58:53 PM
Quote from: ninjarider on August 05, 2005, 12:06:15 PM
what r the controls for your game

a,w,s,d and mouse click to shot.

Here Is the latest screen shot. I will upload it soon.
(http://www.geocities.com/realvampire2001/Clipboard4.jpg%3Cbr%20/%3E)
Title: Re: Made a game
Post by: ninjarider on August 05, 2005, 02:25:20 PM
on the last version uploaded there are 2 bugs.

when the plane.x is < f-16.x the f-16 wont explode.
the f-16 eventually goes out of bounds and can not be killed.

have u added the code that i posted earlier
Title: Re: Made a game
Post by: ninjarider on August 05, 2005, 03:14:02 PM
what graphic library / api functions are u using
Title: Re: Made a game
Post by: ninjarider on August 05, 2005, 06:48:38 PM
some things to consider that might make it look a little more real / interesting. have the plan roll. right now you are dealing with a flat image. as the plane moves left and right the planes across the z-axis stays still. if u had a roll angle of 10 degrees it would make it look a little better. just a suggestion.
Title: Re: Made a game
Post by: Farabi on August 06, 2005, 08:41:19 AM
Quote from: ninjarider on August 05, 2005, 02:25:20 PM
on the last version uploaded there are 2 bugs.

when the plane.x is < f-16.x the f-16 wont explode.
the f-16 eventually goes out of bounds and can not be killed.

have u added the code that i posted earlier

I have not put your code. Im still confused with the implementation. My target now is made my system will not crased first. Since you able to play it, so it not crased on your computer.
Title: Re: Made a game
Post by: Farabi on August 06, 2005, 08:43:10 AM
Quote from: ninjarider on August 05, 2005, 03:14:02 PM
what graphic library / api functions are u using

GDI32.dll The polygon function on that .dll is very fast and efficient.
Title: Re: Made a game
Post by: Farabi on August 06, 2005, 08:45:11 AM
Quote from: ninjarider on August 05, 2005, 06:48:38 PM
some things to consider that might make it look a little more real / interesting. have the plan roll. right now you are dealing with a flat image. as the plane moves left and right the planes across the z-axis stays still. if u had a roll angle of 10 degrees it would make it look a little better. just a suggestion.

:U okay, but it will made the .zip file bigger.
Title: Re: Made a game
Post by: Farabi on August 07, 2005, 06:21:49 AM
I finish it. I will made the stage much more and do the scrolling also.

[attachment deleted by admin]
Title: Re: Made a game
Post by: Mark Jones on August 07, 2005, 01:43:05 PM
Lookin' Good. :U
Title: Re: Made a game
Post by: ninjarider on August 08, 2005, 01:36:06 PM
im not exactly sure because i dont know how to deal with the windows message system. but in vb the code it would look like this

private sub frmGame_Keydown(Keycode, Shift)
  kd(keycode) = 1
end sub

private sub frmGame_Keyup(Keycode, Shift)
  kd(keycode) = 0
end sub

Render_Loop
...
  call sub GetGameInput
...
end sub

Sub GetGameInput()
  if kd(65) = 1 then    plane.x = plane.x -1
...
end sub

obviously your going to need to check the boundries but i hope that gives u a better it.
i would be able to help u better if i had your code. i have masm
Title: Re: Made a game
Post by: ninjarider on August 09, 2005, 04:52:23 PM
theres another bug that i noticed. multiple missle fire. might want to think of using a tracking system for the missles.
Title: Re: Made a game
Post by: Farabi on August 10, 2005, 12:34:01 AM
Quote from: ninjarider on August 09, 2005, 04:52:23 PM
theres another bug that i noticed. multiple missle fire. might want to think of using a tracking system for the missles.

Im going to made it. What made me confuse is when the missles are no used anymore, If I rearangged the memory it stop the game a moment. It stop only 2 frame each second but it still looks not good. I'll send you a mail with the source also. Maybe you will need the source.
Title: Re: Made a game
Post by: ninjarider on August 10, 2005, 07:03:34 PM
bloodycyborge@aol.com
Title: Re: Made a game
Post by: ninjarider on August 11, 2005, 02:06:18 PM
problem....... not sure were it lies but my assembler has a problem with the mm0 and xmm0 commands

grafik_engine.inc error a2006: undifined symbol: mm0
starts at about line 831
Title: Re: Made a game
Post by: Mark Jones on August 11, 2005, 02:26:23 PM
Do you have M.EXE v6.15 or later?
Title: Re: Made a game
Post by: ninjarider on August 11, 2005, 04:23:17 PM
i have masm version 8.2
Title: Re: Made a game
Post by: Farabi on August 12, 2005, 12:29:47 PM
Quote from: ninjarider on August 11, 2005, 02:06:18 PM
problem....... not sure were it lies but my assembler has a problem with the mm0 and xmm0 commands

grafik_engine.inc error a2006: undifined symbol: mm0
starts at about line 831

Hai. Try to not use MMX and mm0. Put ';' in front of the line.
Title: Re: Made a game
Post by: ninjarider on August 17, 2005, 12:40:47 PM
its ok
Title: Re: Made a game
Post by: ninjarider on August 18, 2005, 02:46:35 PM
by chance is there a include that u forgot in your grafik_engine.inc
all the mm0 errors lie in the file
Title: Re: Made a game
Post by: Farabi on August 19, 2005, 03:23:28 AM
Quote from: ninjarider on August 18, 2005, 02:46:35 PM
by chance is there a include that u forgot in your grafik_engine.inc
all the mm0 errors lie in the file

No. mm0 is in MASM32. Maybe the latest package will have the mm0 instruction too.
Title: Re: Made a game
Post by: ninjarider on August 19, 2005, 01:20:35 PM
i downloaded the one thats on hutch's page and it doesn't work
Title: Re: Made a game
Post by: ninjarider on August 19, 2005, 05:16:35 PM
r u still making this game or are u going to a 3-d game now
Title: Re: Made a game
Post by: Farabi on August 20, 2005, 10:59:52 AM
I will made a 3D engine by now. My game is always crashed. I think I should remake everything and goes to 3D real time engine.
Title: Re: Made a game
Post by: ninjarider on August 22, 2005, 01:59:26 PM
as far as your game crashing. it doesn't crash on my computer. there are things that could make the game better but thats y there are still programmers. im wondering if all the code u have in your game is needed. i notice a lot of functions that arn't needed which makes me ask what operating system are u using.
Title: Re: Made a game
Post by: Farabi on August 23, 2005, 05:07:43 AM
I'd like to know what can made it better. I will upload the source here.






source now is copyrighted
Title: Re: Made a game
Post by: Farabi on August 23, 2005, 05:11:52 AM
Here is the binner and the picture. If you want to recompile or modify it the picture should be at one folder with the source.

[attachment deleted by admin]
Title: Re: Made a game
Post by: ninjarider on August 24, 2005, 12:33:39 PM
theres only three things i can think of.
  the missile plane collision barriers. - your numbers are a little off
  character plane and enemy plane collision
  were the explosion that is drawn when a plane is hit is off by a little. - another one that your numbers are a little off
 
Title: Re: Made a game
Post by: Farabi on August 24, 2005, 02:13:03 PM
Quote from: ninjarider on August 24, 2005, 12:33:39 PM
theres only three things i can think of.
  the missile plane collision barriers. - your numbers are a little off
  character plane and enemy plane collision
  were the explosion that is drawn when a plane is hit is off by a little. - another one that your numbers are a little off
 

Sorry for my lack on english, But what is it mean?

Quote
  were the explosion that is drawn when a plane is hit is off by a little. - another one that your numbers are a little off

What is number off?


If you want the character plane blowed if collision with enemy I can do it.
Title: Re: Made a game
Post by: ninjarider on August 24, 2005, 04:10:21 PM
what im talking about is the coordinates were the explosion image is drawn at. the x-coordanite is a not accurate
Title: Re: Made a game
Post by: Farabi on August 25, 2005, 02:25:36 AM
Quote from: ninjarider on August 24, 2005, 04:10:21 PM
what im talking about is the coordinates were the explosion image is drawn at. the x-coordanite is a not accurate

I understand. I will edit the last attachment soon.