Menu
JAQForum Ver 19.10.27

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

   Page 12 of 12    
Posted: 04:19pm
16 Nov 2025
Copy link to clipboard
Volhout
Guru

Hi Leo,

Finally played KM.I need a lot of practise.Get killed by these birds all the time.give me a few days, and Ill meet the big boss.

After 20 minutes,my wife took over,and she made it further…

But,1 hour latere turned to chemiChaos,Vegipetes game.

Anyway, the cmm2 was used again. Houray!


Volhout
 
Posted: 06:35pm
16 Nov 2025
Copy link to clipboard
LeoNicolas
Guru


I'm glad you and your wife are enjoying playing the game. I hope you can reach the end of the game and see the final cutscene,I think it is super cute.
Thank you Volhout
 
Posted: 06:40pm
16 Nov 2025
Copy link to clipboard
LeoNicolas
Guru


I'm glad you and your wife are enjoying playing the game. I hope you can reach the end of the game and see the final cutscene,I think it is super cute.
Thank you Volhout
 
Posted: 07:12pm
17 Nov 2025
Copy link to clipboard
Volhout
Guru

@Leo,

With picomite V6.01.00 rc15 (last one posted by Peter) you should be able to port KM to the pico.

Martin.H has converted your PNG's to BMP's in RGB121 format. Background RGB(Myrtle) / color number 2 for transparencey.

In this demo you see how it is used. Works really fast. You may be able to run your birds at same speed as CMM2.

You could combine maps and objects 2 in one BMP and use flash slot 3
Then use flash slot 2 for the other file (since it's X dimension is different).

-or- just put them side by side (832x240 nibbles = 99840 bytes). That should fit in one slot. Slot 3 should be compatible with most software. Petscii Robots also does that.

 'test for blit from flash slot
 'require picomite V6.01.00 rc14 or newer.

 'load a bmp into flash slot 3, clearing old content (erases library)
 Flash load image 3,"objects2.bmp",o

 'setup 2 planes
 MODE 2
 CLS RGB(cerulean) 'plane N
 FRAMEBUFFER layer 2 'layer L over N with Myrtle as transparent color

 'the screen should be completely blue-ish now since L is transparent

 'copy an object from flash slot 3 to N
           slot  layer    flash XY screen XY size XY
 Blit flash 3,     N,       64,0,    20,20,   16,16   'do not omit copying myrtle
 Blit flash 3,N,64,0,40,20,16,16,2 'omit copying myrtle

 'copy an object from flash slot 3 to L
 'framebuffer write L
 Blit flash 3,L,64,0,60,20,16,16 'do not omit copying myrtle, but L is transparent for Myrtle
 Blit flash 3,L,64,0,80,20,16,16,2 'omit copying myrtle

 n=32 'position X offset for test

 Do
   For x=0 To 15
     xpos=x*16:xrem=(15-x)*16
     Timer =0
     Blit flash 3,L, xpos,80, n,     40,xrem,16
     Blit flash 3,L, 0,   80, xrem+n,40,xpos,16
     tm=Timer
     Pause 20 'without the pause it would not be visible so fast.
   Next
 Loop While Inkey$=""
 Text 0,0,"2 blits take "+Str$(tm)+" ms"

End


Put this program and objects2.bmp in one folder, and run.

Volhout
Edited 2025-11-18 05:25 by Volhout
 
Posted: 09:26pm
17 Nov 2025
Copy link to clipboard
LeoNicolas
Guru


Thank you very much for your help Martin and Volhout. I will take a look at them on the weekend
 
Posted: 10:02pm
18 Nov 2025
Copy link to clipboard
homa
Guru


Hi LeoNicolas,

I had a few questions while playing.

The shield only works from the front, and that's how it's supposed to be? It makes sense, but it's annoying sometimes with the birds from behind. It seems like they don't even have to touch you, just being close is enough. **Annoying**  ;-)

If I have the double arrow upgrade and collect the same double arrow upgrade again, the strength should be increased, right? But instead, I get a single arrow?!?

In another round, the first 500-point field is often only half visible.

Then I get an 404 error on your GitHub page at this link: I created a nodejs script that converts the exported json map to the binary format used by the game engine.

Matthias
 
Posted: 08:56pm
20 Nov 2025
Copy link to clipboard
homa
Guru


@LeoNicolas

The sound issue has been resolved; it was due to my SD card.

I found another bug. This ball came, shot/placed on S. It went to the left into the graphics with the columns, where the game character cannot go. It is positioned so that when it comes back to the right, the game character hits it or collects the item. At that moment, the programme crashes. "Error in objects.inc line 726: Not Showing"

Then I experienced another respawn just before a bridge, but I died again immediately. Bad luck :-) but a position just before the bridge where the character runs over it would be nicer.

The game is really cool!

Matthias
 
Posted: 04:30am
21 Nov 2025
Copy link to clipboard
LeoNicolas
Guru


Matthias

I want to thank you for testing the game. This is very kind. I will work on the bugs at the weekend.

I need to implement and algorithm to move the player to a safe place after a death, avoiding it to be stuck behind or inside a river or a wall when respawning.

I hope you can finish the game . I think the final cut scene is very cool.
 
Posted: 08:19pm
22 Nov 2025
Copy link to clipboard
homa
Guru


Hi Leo,

Here's another funny bug. If you die while trying to collect a special item like the double arrow, it still collects the item. After respawning, I immediately had a double arrow!

When I reach and defeat the final boss in stage one, the final boss comes back! So instead of going to stage two, it respawns in the final battle. Unfortunately, I was caught off guard, got hit straight away and it was game over.

And when attempting to restart in the game, the following error occurs: Error in map.inc line 173: Index out of bounds.
Only restarting the programme via run helps.

Matthias
Edited 2025-11-23 06:22 by homa
 
Posted: 11:37pm
27 Nov 2025
Copy link to clipboard
homa
Guru


  homa said  
I found another bug. This ball came, shot/placed on S. It went to the left into the graphics with the columns, where the game character cannot go. It is positioned so that when it comes back to the right, the game character hits it or collects the item. At that moment, the programme crashes. "Error in objects.inc line 726: Not Showing"


Hi Leo,

My new video grabber has arrived, and it can finally record VGA from the CMM2.
Here is the bug as a video.

km_error_demo.zip

Matthias
 
   Page 12 of 12    


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026