[GAME]: The Demon (Demonio)

Projects in Development.
User avatar
Sempiternam
Posts: 8
Joined: Fri Sep 18, 2009 3:21 pm

[GAME]: The Demon (Demonio)

Post by Sempiternam »

Heya people!

I used to write some code on DIV2 and now I'm trying to use Gemix, some errors happend and were corrected.

This project is a good one for DIV2 and it works with Gemix compiler. There were some design things I changed. Now it works on Gemix very well.

I want to share this project so I'm giving you some files to check what is done, if you want. If some one could help to do it work on Gemix with the complete code it will be great.

I live in Buenos Aires, Argentina. I wanted to use this section of your forum but it will be great if anyone want to help here.

Sempiternam les da las gracias amigos. Saludos.

// Basic AI for complex characters // (Complete Basic AI design)
// On Gemix: All ok! //
// Moving keys, RShift, RControl, RAlt, Esc // (I think I should change the action keys)

- Next Step: Game Balance -
You do not have the required permissions to view the files attached to this post.
Last edited by Sempiternam on Sat Nov 21, 2009 10:00 pm, edited 7 times in total.
Sempiternam
User avatar
CicTec
Posts: 16590
Joined: Thu Jul 31, 2008 10:18 pm

Re: [GAME]: The Demon (Demonio)

Post by CicTec »

Hi, first welcome :)

if you are Argentine, you might want to use this section of the forum: http://www.gemixstudio.com/forums/viewforum.php?f=38

ok, I will check the game to see problems than div2, thanks for sharing the project with us :)

PD: if you are Argentine, let me know so I can move the thread in the other forum.
User avatar
Sempiternam
Posts: 8
Joined: Fri Sep 18, 2009 3:21 pm

Re: [GAME]: The Demon (Demonio)

Post by Sempiternam »

Thanks for your welcome. I'm glad to share some of my codes to you people.

I'm living in Buenos Aires long time ago. But I don't understand Spanish terms, only Argentinean terms. So, because English is my native idiom I wrote in this section, but if you think is better to put this thread in Español section it's ok.

Try to run the game with some other characters enabled. The error begins when some sprites try to appear. If the program puts some characters with fire sprites it ends.

Another thing is that this game is a “m320x200” screen game and it need to be a full screen one.

See you and good fun.
User avatar
CicTec
Posts: 16590
Joined: Thu Jul 31, 2008 10:18 pm

Re: [GAME]: The Demon (Demonio)

Post by CicTec »

oh Ok then this section is perfect :)

Now I'm analyzing the game, the error resulted from the process Leg_Mech (dx +30, dy, 0);

with the following code:

Code: Select all

// Error code //
    Cop(dx,dy,0);
//    Leg_Mech(dx+30,dy,0);
    R_Mech(200,dy,0,2);
    G_Bot(230,dy,0);
    Mech(260,dy,0);
    X_Bot(290,dy,0);
everything seems to work well (please, check if it is to get more info)

About the Fullscreen, has 2 options:
1 - using an overload of set_mode:

Code: Select all

set_mode(320, 200, 8, mode_fullscreen);
2 - using the helper function CHANGE_MODE

Code: Select all

set_mode(m320x200);
change_mode(mode_fullscreen);
So your program ran in fullscreen mode :)

I continue to analyze your program, as soon as possible to solve this bug you'll know.

Regards :)
User avatar
Dluk
Posts: 2423
Joined: Sun Jan 04, 2009 3:51 pm
Location: En el campo de batalla
Contact:

Re: [GAME]: The Demon (Demonio)

Post by Dluk »

Sempiternam wrote:I'm living in Buenos Aires long time ago. But I don't understand Spanish terms, only Argentinean terms. So, because English is my native idiom I wrote in this section, but if you think is better to put this thread in Español section it's ok.
Hey, I'm from Argentine too :D

Don't worry about the errors in Gemix, the team will find what's going on for sure, and maybe your project will help them to fix any bug in Gemix. So, you're helping by posting this here ^^

Regards, pal.
Image
"El destino es como un juego... ¿No? Y ahora, esperas mi último movimiento"

Kain - Legacy of Kain: Soul Reaver
User avatar
Sempiternam
Posts: 8
Joined: Fri Sep 18, 2009 3:21 pm

Re: [GAME]: The Demon (Demonio) - Explaining

Post by Sempiternam »

Thanks for answer me.
I'll try to explain...
Sempiternam wrote: // Basic AI for complex characters - (Demonio4.PRG has the most advanced code)
// On Gemix: Error code // (look at the 'Error code' line and try some other characters, error occurs when a sprite appears)
// Moving keys, RShift, RControl, RAlt, Esc // (try some combination on each character)

Demonio0.PRG (First: enemies moves)
Demonio1.PRG (Second: Demon moves)
Demonio2.PRG (Third: Demon/enemies interaction)
Demonio4.PRG (Fourth: enemies' basic AI)
I want to change this code on Funcion prueba():
set_mode(m320x200);
For these:
set_mode(320,200,8,mode_window);
set_filter_mode(1,0); // 2xWindow_mode //

See you and thanks.
Sempiternam
User avatar
CicTec
Posts: 16590
Joined: Thu Jul 31, 2008 10:18 pm

Re: [GAME]: The Demon (Demonio)

Post by CicTec »

Yes, I'm analyzing your applications to correct the bug, but I still have not solved

For the filter, you can also use an unique function:
for Normal2x

Code: Select all

set_mode(320, 200, 8, mode_window, filter_scale_normal2x, 0);
for Scalel2x

Code: Select all

set_mode(320, 200, 8, mode_window, filter_scale_scale2x, 0);
User avatar
CicTec
Posts: 16590
Joined: Thu Jul 31, 2008 10:18 pm

Re: [GAME]: The Demon (Demonio)

Post by CicTec »

Ok, I found the bug, occurs using variables of type BYTE, for the moment creates a copy of the PRG and edit all data BYTE to INT.
for example:

Code: Select all

Process Demonio(x,y)
private
    rango=91; ini=1; Climite=8;
    cDem=0; sDem; aux;
    byte move, action, dir;
    byte cx,cy,fx,fy;
    cpunch=0;
    tx;
with

Code: Select all

Process Demonio(x,y)
private
    rango=91; ini=1; Climite=8;
    cDem=0; sDem; aux;
    move, action, dir;
    cx,cy,fx,fy;
    cpunch=0;
    tx;
so your program will work fine and you can continue with the development :)
User avatar
Sempiternam
Posts: 8
Joined: Fri Sep 18, 2009 3:21 pm

Re: [GAME]: The Demon (Demonio) - Error Correcting: BYTE for INT

Post by Sempiternam »

Thanks. That's correct, BYTE was the problem in some functions like get_point.

I'll edit the main post to upload the corrected version.

See you.
Sempiternam
User avatar
CicTec
Posts: 16590
Joined: Thu Jul 31, 2008 10:18 pm

Re: [GAME]: The Demon (Demonio)

Post by CicTec »

Well, no problem :)

See you.
Post Reply

Return to “WIP Projects”