Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 18:33 14 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic: Knightmare Game

     Page 8 of 9    
Author Message
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 11:39pm 24 Mar 2024
Copy link to clipboard 
Print this post

Matthias

I committed the fix for the error you reported. I hope it is fixed. . I tested stage 1 after fixing the issue, and it looks like it is no longer happening.

This screenshot is from stage 6. Not enemies or boss implemented yet.


Edited 2024-03-25 09:42 by LeoNicolas
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1595
Posted: 05:05am 25 Mar 2024
Copy link to clipboard 
Print this post

Hi Leo, I didn't try the previous version and just had time for a quick play. I am finding now that using the gamepad left hand joystick that I can't move left.

I see that you have changed the sub process_gamepad() sub but I don't understand it now you are using the dig_pos variable. I don't have the time to find it amongst the .inc files.

Bill

Edit: It seems also that you cannot shoot while moving. I'm sure you could before. That will be a disadvantage fighting the boss and those cloud things.
Edited 2024-03-25 15:12 by Turbo46
Keep safe. Live long and prosper.
 
homa

Senior Member

Joined: 05/11/2021
Location: Germany
Posts: 247
Posted: 03:46pm 26 Mar 2024
Copy link to clipboard 
Print this post

Hi Leo,

I tested the current git version today with the MMBasic you specified. So far it works! Even with XBox controller and/or keyboard without any code changes.
However, there is an error with the final boss in level 1 ...





And I think you should update the GIT info page. https://github.com/leonicolas/knightmare-cmm2




It still refers to an old, incompatible version of MMBasic.

And I can confirm Bill's problem: "It seems also that you cannot shoot while moving".

Matthias
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 06:02am 28 Mar 2024
Copy link to clipboard 
Print this post

Matthias

I have fixed the issue you reported and the link to download MMB4W.
Let me know if you find any other issues.

Best regards
Leo
 
homa

Senior Member

Joined: 05/11/2021
Location: Germany
Posts: 247
Posted: 05:12pm 28 Mar 2024
Copy link to clipboard 
Print this post

Hi Leo,
Sure, and immediately:





There was another glitch. Before a river, I left the screen on the left and came back on the right.
This happened so quickly that I had no way of documenting it. (Stage 3 or 4?!?)

Matthias
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 10:28pm 28 Mar 2024
Copy link to clipboard 
Print this post

Matthias

This is a normal behavior. There are some places in the maps where you can wrap around the corners.

I will fix the bug from your screenshot.

Thank you for helping me testing the game
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 06:02pm 29 Mar 2024
Copy link to clipboard 
Print this post

Matthias

I have fixed the stage 4 boss movement pattern and the crash from your screenshot.
I'm planning to complete the stage 6 implementation this weekend.
Edited 2024-03-30 04:11 by LeoNicolas
 
homa

Senior Member

Joined: 05/11/2021
Location: Germany
Posts: 247
Posted: 09:25pm 30 Mar 2024
Copy link to clipboard 
Print this post

Leo

  LeoNicolas said  
This is a normal behavior. There are some places in the maps where you can wrap around the corners.


Understanding, knowing

Try the following... Start, run left in front of the obstacle and let yourself be pushed down out of the screen area.
You will get an error message ;-)

Matthias
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1595
Posted: 09:59pm 30 Mar 2024
Copy link to clipboard 
Print this post

That will also happen if you let a river take you of the bottom of the screen. Normally you would die but Leo has not implemented death yet.

Bill
Keep safe. Live long and prosper.
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 04:37am 07 Apr 2024
Copy link to clipboard 
Print this post

Yep, I didn't implement it. I'm completing the stage 6 implementation. The next task after stage 6 will be the player's death logic.

My relatives are in town, and I'm spending my free time with them, so I've not posted updates in the last two weeks.

Today, I completed the implementation of two new enemies: the zombie and the sorcerer. I only need to finish the stage 6 boss implementation to complete this stage.

 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1595
Posted: 07:44am 07 Apr 2024
Copy link to clipboard 
Print this post

Hi Leo,

I am finding now that using the gamepad left hand joystick that I can't move left. Well you can sort of - you can move left one step each time you move the stick from centre to the left but not a continuous movement. The left hand D-pad works OK.

I see that you have changed the sub process_gamepad() sub but I don't understand it now you are using the dig_pos variable.

It seems also that you cannot shoot while moving. I'm sure you could before. That will be a disadvantage fighting the boss and those cloud things. Edit: Further testing shows that you can shoot sometimes while moving but not always? The keyboard works OK and you can shoot while moving. Something is a bit amiss with the controller implementation (I hope my controller is not faulty already)

The first time you run the game using the controller MMB4W announces that the gamepad is connected after the game has begun. This overwrites the screen and it stays there ruining the picture. MMB4W needs to be restarted to get rid of it. I don't know if you can do something about it or whether it is something for Peter?

Bill
Keep safe. Live long and prosper.
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 02:28am 08 Apr 2024
Copy link to clipboard 
Print this post

Bill

I have fixed the gamepad bug. Please let me know if it is working as expected.

Thank you
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1595
Posted: 05:08am 08 Apr 2024
Copy link to clipboard 
Print this post

Thanks Leo,

The gamepad works now as it did before.  

Bill
Keep safe. Live long and prosper.
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 04:52am 19 Apr 2024
Copy link to clipboard 
Print this post

Hello everyone

My life was upside down this last month. I didn't have time to work on the game.
This week, I could partially complete the stage 6 boss implementation and the player collision/death. I also fixed some bugs. Stage 6 is not ready yet.

I hope you enjoy the result.


https://www.youtube.com/watch?v=2C-2E30hsxA
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3570
Posted: 07:13am 19 Apr 2024
Copy link to clipboard 
Print this post

Take it easy Leo,

I will keep following this, and will try to help with the port to Pico and CMM2.

Volhout
PicomiteVGA PETSCII ROBOTS
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 02:57am 20 Apr 2024
Copy link to clipboard 
Print this post

Today, I implemented the player's death by being crushed by map objects and the level restarting from the death position.

I fixed a ton of minor bugs. The next step is to create the game over screen. In the current game version, you can die infinitely.

There is a new global variable in the global.inc file which can make you invincible.

dim g_invincible=false
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 912
Posted: 09:07am 20 Apr 2024
Copy link to clipboard 
Print this post

  Volhout said   and will try to help with the port to Pico and CMM2.

Volhout

me to, if you have finished the game graphics I will gladly take over the conversion for the Pico compatible SPR or CSUB files.
'no comment
 
homa

Senior Member

Joined: 05/11/2021
Location: Germany
Posts: 247
Posted: 10:34am 20 Apr 2024
Copy link to clipboard 
Print this post

@leo: GREAT!

It's more fun straight away!

Stage 1, when I died:
Error in boss.inc line 399: -8 is invalid (valid is —7 to 199)

Another note: When respawning, the player is now sometimes placed in an obstacle (bridge/river) and dies immediately. I don't know how this is in the original game.

Matthias
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 02:24pm 20 Apr 2024
Copy link to clipboard 
Print this post

Thanks Matthias

I didn't complete the respawning logic. The current one is using the same row where the player has died. I need to add a logic to check where it is respawning.

I think the error in the boss fight is related to the same missing logic.

Martin, I'm still adding graphics or modifying the position of the images when necessary. I will have it done when I finish the stage 8.
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 449
Posted: 10:13pm 20 Apr 2024
Copy link to clipboard 
Print this post

Matthias

I think I fixed the issues you have reported. Let me know if you find new ones :)

Thank you for helping me with the game tests
 
     Page 8 of 9    
Print this page
© JAQ Software 2024