[GAME]: The Demon (Demonio)
- Sempiternam
- Posts: 8
- Joined: Fri Sep 18, 2009 3:21 pm
Re: [GAME]: The Demon (Demonio) - 1st reupload
Hello people.
Thanks to those who checked the code and those who want to see more code coming on.
There are the new Rar files uploaded. The first post will be edited to put new files and new versions of those that are there.
"Demonio" was the original name for this game but if you think 'The Demon' is a better one it will be. I put Demonio because of the 8 characters for DIV2 on MS-DOS, that's because files has the 8th character for a number version.
An old deleted version had music.
I will be working on playing code before add some soundfx and music. Balancing enemies is next step, then will be scrolling.
First I need to know what is happening with memory when the game is running (game moving slow - progressive memory error I think).
See you next time. Thanks for everything.
PD: I want to do something with this project, may be then I'll continue another.
Thanks to those who checked the code and those who want to see more code coming on.
There are the new Rar files uploaded. The first post will be edited to put new files and new versions of those that are there.
"Demonio" was the original name for this game but if you think 'The Demon' is a better one it will be. I put Demonio because of the 8 characters for DIV2 on MS-DOS, that's because files has the 8th character for a number version.
An old deleted version had music.
I will be working on playing code before add some soundfx and music. Balancing enemies is next step, then will be scrolling.
First I need to know what is happening with memory when the game is running (game moving slow - progressive memory error I think).
See you next time. Thanks for everything.
PD: I want to do something with this project, may be then I'll continue another.
Last edited by Sempiternam on Thu Nov 19, 2009 7:54 am, edited 2 times in total.
Sempiternam
- Dluk
- Posts: 2423
- Joined: Sun Jan 04, 2009 3:51 pm
- Location: En el campo de batalla
- Contact:
Re: [GAME]: The Demon (Demonio)
Well, man, we'll be waiting your games! Hope the best with your projects 
Regards
Regards

"El destino es como un juego... ¿No? Y ahora, esperas mi último movimiento"
Kain - Legacy of Kain: Soul Reaver
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio) - 1st reupload
No problem, always glad to helpSempiternam wrote:Hello people.
Thanks to those who checked the code and those who want to see more code coming on.
There are the new Rar files uploaded. The first post will be edited to put new files and new versions of those that are there.
"Demonio" was the original name for this game but if you think 'The Demon' is a better one it will be. I put Demonio because of the 8 characters for DIV2 on MS-DOS, that's because files has the 8th character for a number version.
An old deleted version had music.
I will be working on playing code before add some soundfx and music. Balancing enemies is next step, then will be scrolling.
First I need to know what is happening with memory when the game is running (game moving slow - progressive memory error I think).
See you next time. Thanks for everything.
PD: I want to do something with this project, may be then I'll continue another.
Can you provide detailed information about the memory error?
I see that occur in Demonio4, but in such situations?
After how long?
The information will help us understand what is wrong with the game and possibly Gemix.
Whatever name you give the project to us is okay
Mind with the project
- xdios
- Posts: 188
- Joined: Thu May 28, 2009 12:41 pm
Re: [GAME]: The Demon (Demonio)
Hi Sempiternam, you're welcome.
It's good to see new projects on english forum, may be the beginnig.
too much shoots for me in your game,
i can't do anything whith demon
I think it is only a demo, isn't it?
It's good to see new projects on english forum, may be the beginnig.
too much shoots for me in your game,
I think it is only a demo, isn't it?
![[RETO]: Concurso navideño - [JUEGO]: La Fábrica de Regalos [RETO]: Concurso navideño - [JUEGO]: La Fábrica de Regalos](../space/gold_medal.png)
- Sempiternam
- Posts: 8
- Joined: Fri Sep 18, 2009 3:21 pm
Re: [GAME]: The Demon (Demonio) - Explaining development steps.
Hello people. Thanks to be here.
I’ll try to explain some basic working steps for projects like this.
First: To have an idea for a project. I wanted to do the Demon a mortal weapon inside a metropolis.
Second: To have some resources to begin working. I used screen captures taken from a game emulator for 16 bits Sega, Primal Rage (version from arcade) and some other games.
Third: To create a good code base. I wanted to do a good moving control for the Demon so I used on DIV2 an old code written on Pascal.
Fourth: Working on interaction. Some enemies were done and interaction with the Demon was next step. Some good points at this step: arithmetic functions for fire and other.
Fifth: Basic AI. This game must have some complex enemies to combat the Demon so I worked on each character to do their intelligence a different one. This is the actual step on this project (19 November 2009).
Next Step: Working on balance. Demon needs some chances to defeat each enemy and to fight with almost two or three at the same time. Some simple interaction effects will be needed.
Some other steps: To do a playable game, creating scrolling, creating a story and a goal for the Demon. Adding sound Fx, music and special visual Fx.
Then the game will be finished. (Always: Attention on each step to avoid errors)
Thanks to give me your answers. It will be great to see your support on each step.
I’ll try to explain some basic working steps for projects like this.
First: To have an idea for a project. I wanted to do the Demon a mortal weapon inside a metropolis.
Second: To have some resources to begin working. I used screen captures taken from a game emulator for 16 bits Sega, Primal Rage (version from arcade) and some other games.
Third: To create a good code base. I wanted to do a good moving control for the Demon so I used on DIV2 an old code written on Pascal.
Fourth: Working on interaction. Some enemies were done and interaction with the Demon was next step. Some good points at this step: arithmetic functions for fire and other.
Fifth: Basic AI. This game must have some complex enemies to combat the Demon so I worked on each character to do their intelligence a different one. This is the actual step on this project (19 November 2009).
Next Step: Working on balance. Demon needs some chances to defeat each enemy and to fight with almost two or three at the same time. Some simple interaction effects will be needed.
Some other steps: To do a playable game, creating scrolling, creating a story and a goal for the Demon. Adding sound Fx, music and special visual Fx.
Then the game will be finished. (Always: Attention on each step to avoid errors)
Thanks to give me your answers. It will be great to see your support on each step.
Last edited by Sempiternam on Fri Nov 20, 2009 5:14 am, edited 1 time in total.
Sempiternam
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio)
well, you've organized everything in detail, we will be careful in every step of development to test the game and send suggestions / ideas and opinions.
I wish you good job
I wish you good job
- Dluk
- Posts: 2423
- Joined: Sun Jan 04, 2009 3:51 pm
- Location: En el campo de batalla
- Contact:
Re: [GAME]: The Demon (Demonio) - Explaining development steps.
You bet we'll be here to help youSempiternam wrote:Thanks to give me your answers. It will be great to see your support on each step.

"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) - Error detail
Hello people.
Here is the false error if found.
(Running Demonio4.PRG on Gemix)
GEMIX: Error en ejecución
ERROR_118: Hay demasiados textos activos en el programa.
LOCATION: WRITE_INT
PARAMETER: 1
VALUE: 0
Deleted code lines:
// write_int(0, 10, 10, 4, OFFSET x);
// write_int(0, 30, 10, 4, OFFSET y);
// write_int(0, 40, 20, 4, OFFSET Energia);
(Rerunning Demonio4.PRG: No errors)
Now Demonio4AI file is a perfect DIV2 'AI code' example for Gemix. The first post has the updated files (21 November 2009).
- Next Step: Game Balance -
Here is the false error if found.
(Running Demonio4.PRG on Gemix)
GEMIX: Error en ejecución
ERROR_118: Hay demasiados textos activos en el programa.
LOCATION: WRITE_INT
PARAMETER: 1
VALUE: 0
Deleted code lines:
// write_int(0, 10, 10, 4, OFFSET x);
// write_int(0, 30, 10, 4, OFFSET y);
// write_int(0, 40, 20, 4, OFFSET Energia);
(Rerunning Demonio4.PRG: No errors)
Now Demonio4AI file is a perfect DIV2 'AI code' example for Gemix. The first post has the updated files (21 November 2009).
- Next Step: Game Balance -
Sempiternam
- CicTec
- Posts: 16590
- Joined: Thu Jul 31, 2008 10:18 pm
Re: [GAME]: The Demon (Demonio) - Error detail
Ohh, then this was the mistake...Sempiternam wrote:Hello people.
Here is the false error if found.
(Running Demonio4.PRG on Gemix)
GEMIX: Error en ejecución
ERROR_118: Hay demasiados textos activos en el programa.
LOCATION: WRITE_INT
PARAMETER: 1
VALUE: 0
Deleted code lines:
// write_int(0, 10, 10, 4, OFFSET x);
// write_int(0, 30, 10, 4, OFFSET y);
// write_int(0, 40, 20, 4, OFFSET Energia);
(Rerunning Demonio4.PRG: No errors)
Now Demonio4AI file is a perfect DIV2 'AI code' example for Gemix. The first post has the updated files (21 November 2009).
- Next Step: Game Balance -
actually this si an error of DIV2, because the texts with the same coordinates and properties were recreated, but worked well in DIV 1, some examples:
code executed on DIV 1
Code: Select all
program test;
begin
repeat
write(0, 160, 100, 4, "DIV"); // after 512 texts created DIV throw the runtime error 118, OK correct
frame;
until(key(_esc));
end
Code: Select all
program test;
begin
repeat
write(0, 160, 100, 4, "DIV"); // the text is recreated on each time, ERROR! this is wrong beaviour
frame;
until(key(_esc));
end
but in other languages this may be correct, so we decided to double implementation:
1 - the default behaviour is like DIV1: each call of WRITE's functions create a new text object
2 - using the new function SET_WRITE_BEHAVIOUR you can change the behavior as DIV2
So, this is how you can use on Gemix...
Default behaviour:
Code: Select all
program test;
begin
repeat
write(0, 160, 100, 4, "Gemix"); // after 65536 texts created Gemix throw the runtime error 118, OK correct
frame;
until(key(_esc));
end
Code: Select all
program test;
begin
set_write_behaviour(wri_overwrite); // set the behaviour overwrite for texts with the same properties.
repeat
write(0, 160, 100, 4, "Gemix"); // the text is recreated on each time (is not the best use, but OK)
frame;
until(key(_esc));
end
Code: Select all
program test;
begin
write_int(0, 160, 100, 4, &x); // the text is created one time (the best performance)
repeat
x++; // the engine automatically update the text that use this variable with the new value
frame;
until(key(_esc));
end
- Dluk
- Posts: 2423
- Joined: Sun Jan 04, 2009 3:51 pm
- Location: En el campo de batalla
- Contact:
Re: [GAME]: The Demon (Demonio)
Nice, man! I'm glad this works now! I've tested it and it runs with no problems. Keep up the great work! 
Regards
Regards

"El destino es como un juego... ¿No? Y ahora, esperas mi último movimiento"
Kain - Legacy of Kain: Soul Reaver