[GAME]: The Demon (Demonio)
- Sempiternam
- Posts: 8
- Joined: Fri Sep 18, 2009 3:21 pm
[GAME]: The Demon (Demonio)
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 -
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
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio)
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.
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.
- Sempiternam
- Posts: 8
- Joined: Fri Sep 18, 2009 3:21 pm
Re: [GAME]: The Demon (Demonio)
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.
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.
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio)
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:
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:
2 - using the helper function CHANGE_MODE
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
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);
About the Fullscreen, has 2 options:
1 - using an overload of set_mode:
Code: Select all
set_mode(320, 200, 8, mode_fullscreen);
Code: Select all
set_mode(m320x200);
change_mode(mode_fullscreen);
I continue to analyze your program, as soon as possible to solve this bug you'll know.
Regards
- Dluk
- Posts: 2423
- Joined: Sun Jan 04, 2009 3:51 pm
- Location: En el campo de batalla
- Contact:
Re: [GAME]: The Demon (Demonio)
Hey, I'm from Argentine tooSempiternam 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.
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.

"El destino es como un juego... ¿No? Y ahora, esperas mi último movimiento"
Kain - Legacy of Kain: Soul Reaver
- Sempiternam
- Posts: 8
- Joined: Fri Sep 18, 2009 3:21 pm
Re: [GAME]: The Demon (Demonio) - Explaining
Thanks for answer me.
I'll try to explain...
set_mode(m320x200);
For these:
set_mode(320,200,8,mode_window);
set_filter_mode(1,0); // 2xWindow_mode //
See you and thanks.
I'll try to explain...
I want to change this code on Funcion prueba():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)
set_mode(m320x200);
For these:
set_mode(320,200,8,mode_window);
set_filter_mode(1,0); // 2xWindow_mode //
See you and thanks.
Sempiternam
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio)
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
for Scalel2x
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);
Code: Select all
set_mode(320, 200, 8, mode_window, filter_scale_scale2x, 0);
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio)
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:
with
so your program will work fine and you can continue with the development 
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;
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;
- Sempiternam
- Posts: 8
- Joined: Fri Sep 18, 2009 3:21 pm
Re: [GAME]: The Demon (Demonio) - Error Correcting: BYTE for INT
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.
I'll edit the main post to upload the corrected version.
See you.
Sempiternam
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio)
Well, no problem 
See you.
See you.