News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Made a game

Started by Farabi, August 03, 2005, 02:48:50 AM

Previous topic - Next topic

Mark Jones

"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ninjarider

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

ninjarider

theres another bug that i noticed. multiple missle fire. might want to think of using a tracking system for the missles.

Farabi

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.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"


ninjarider

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

Mark Jones

Do you have M.EXE v6.15 or later?
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ninjarider

i have masm version 8.2

Farabi

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.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

ninjarider


ninjarider

by chance is there a include that u forgot in your grafik_engine.inc
all the mm0 errors lie in the file

Farabi

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.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

ninjarider

i downloaded the one thats on hutch's page and it doesn't work

ninjarider

r u still making this game or are u going to a 3-d game now

Farabi

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.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"