Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:41 22 May 2025 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 : Lemmings....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9505
Posted: 01:46am 19 May 2025
Copy link to clipboard 
Print this post

Found this video last night, thought I would post it:

The history of Lemmings...

I was mildy addicted to this game back in the days of MS-DOS 6!  

Watching this video about it, almost makes me want to find a port that will run in DOS-BOX on more modern hardware.  

But I have too many other things to get done.

Perhaps someone could port it to the CMM2?  
Edited 2025-05-19 11:47 by Grogster
Smoke makes things work. When the smoke gets out, it stops!
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4904
Posted: 07:25am 19 May 2025
Copy link to clipboard 
Print this post

As a demo for "Simple_Sprite_Draw", a program to develop sprites for animation, there was a single lemming walking. But...yah.. it needs a game.
For PicoMiteVGA.

SimpleSpriteDraw by Vegipete

OPTION DEFAULT INTEGER
MODE 2

const SPRADDR = Peek(cfunaddr LemWalk)

box 0,100,MM.HRES,5,,rgb(rust),rgb(rust) ' ground to walk on
for x = 1 to MM.HRES-9
box 0,92,MM.HRES,8,,0,0    ' brute force erase previous image
blit memory SPRADDR+(x mod 8)*36,x,92   ' draw sprite
pause 70
next x
for x = MM.HRES-9 to 1 step -1
box 0,92,MM.HRES,8,,0,0    ' brute force erase previous image
blit memory SPRADDR+(15 - x mod 8)*36,x,92   ' draw sprite
pause 70
next x

CSub LemWalk
00000000
00080008
00066660 0000F660 000FFF00 00003F00
00003F00 00003300 000033F0 0000FF00
' length: 36
00080008
00066600 0000F660 000FFF00 00003F00
000033F0 00F033F0 000F0330 00000FF0
' length: 36
00080008
00006060 00006660 0000F600 000FFF00
00003FF0 000033F0 00033330 00FF00FF
' length: 36
00080008
00006600 0006F660 000FFF60 00003F00
00003FF0 000033F0 0003333F 000FF00F
' length: 36
00080008
00066660 0000F660 000FFF60 00003F00
00003F00 0000F300 000033F0 0000FF00
' length: 36
00080008
00066600 0000F660 000FFF00 00003F00
0000F300 00F0F300 000F0330 00000FF0
' length: 36
00080008
00006060 00006660 0000F600 000FFF00
0000F300 000F3300 00033330 00FF00FF
' length: 36
00080008
00006600 0006F660 000FFF60 00003F00
00003F00 0000F300 0003333F 000FF00F
' length: 36
00080008
06666000 066F0000 00FFF000 00F30000
00F30000 00330000 0F330000 00FF0000
' length: 36
00080008
00666000 066F0000 00FFF000 00F30000
0F330000 0F330F00 0330F000 0FF00000
' length: 36
00080008
06060000 06660000 006F0000 00FFF000
0FF30000 0F330000 03333000 FF00FF00
' length: 36
00080008
00660000 066F6000 06FFF000 00F30000
0FF30000 0F330000 F3333000 F00FF000
' length: 36
00080008
06666000 066F0000 06FFF000 00F30000
00F30000 003F0000 0F330000 00FF0000
' length: 36
00080008
00666000 066F0000 00FFF000 00F30000
003F0000 003F0F00 0330F000 0FF00000
' length: 36
00080008
06060000 06660000 006F0000 00FFF000
003F0000 0033F000 03333000 FF00FF00
' length: 36
00080008
00660000 066F6000 06FFF000 00F30000
00F30000 003F0000 F3333000 F00FF000
' length: 36
end csub
' end


Or...

More fancy...

2023-12-19_053151_lem_walk.zip
.
Edited 2025-05-19 17:33 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9505
Posted: 07:50am 19 May 2025
Copy link to clipboard 
Print this post

Hey, man......I was just joking, but bloody hell!  
Perhaps with some more MMBASIC, we could have a CMM2 Lemmings.  

I'd play it.
For HOURS.  
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7573
Posted: 11:10am 19 May 2025
Copy link to clipboard 
Print this post

You, Sir, are one sad individual.  ;)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 529
Posted: 02:29pm 19 May 2025
Copy link to clipboard 
Print this post

  Grogster said  Perhaps with some more MMBASIC, we could have a CMM2 Lemmings.


Oh - That would be amazing. One of the best games on the Amiga.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4904
Posted: 08:05pm 19 May 2025
Copy link to clipboard 
Print this post

On the pico 2040 VGA you can animate 12 lemmings in 2ms (the large 13x20 sprites).

When you have 20-30 of these larger ones on screen if is really crowded.
But a simple game would be possible while keeping the speed at 100ms (typical lemmings walk speed). That would be roughly 5-6 ms (just animating the sprites).

A lot of game loop will be in the individual control of each lemming.
-find the floor and act to it (climb hill, fall down)
-detect obstacles like walls, or lemmings that stop you
-select the right sprite with the movement.
And then we lose roughly 25% speed in music + sfx.
I have no idea how much mouse control would require yet. But I intend to find out.

But I think it should be do-able. With 30 max larger lemmings.
A game with 100 small ones is another league. That would definitely require a 2350 or CMM2.

Question is... is this simple 30 lemmings game worth developing. If everyone would be disappointed, and only settles for the 100 lemmings game, no one will be happy.

Volhout
PicomiteVGA PETSCII ROBOTS
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9505
Posted: 11:52pm 19 May 2025
Copy link to clipboard 
Print this post

I would go directly to the CMM2 - it has the graphics ability.
Well, much MORE graphics ability then the PM, although, I have not played with the new 2350 chip, so I don't know it's capabilities there.  But the CMM2 was my original thought.

I was just joking about this though.  It would only be worth doing, if someone had the spare time and wanted a challenge.

  Mixtel90 said  You, Sir, are one sad individual.  ;)


Oh, I know that already.      
Smoke makes things work. When the smoke gets out, it stops!
 
ManiB
Senior Member

Joined: 12/10/2019
Location: Germany
Posts: 120
Posted: 01:25pm 20 May 2025
Copy link to clipboard 
Print this post

You need the power of the CMM2 to have some fun.

Here is a video of my brother who got MMBasic running on the STM32F746 Discovery Board:

https://www.youtube.com/watch?v=5g3-ztufoNM

More infos about on my blog:

https://mikrocontroller.bplaced.net/wordpress/?page_id=787

Or her in this forum:
https://www.thebackshed.com/forum/ViewTopic.php?TID=7969



Edited 2025-05-21 00:06 by ManiB
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4904
Posted: 02:30pm 20 May 2025
Copy link to clipboard 
Print this post

@ManiB,

That is early work (2015).
10 years ago... wauw...

Volhout
.
PicomiteVGA PETSCII ROBOTS
 
ManiB
Senior Member

Joined: 12/10/2019
Location: Germany
Posts: 120
Posted: 08:10pm 20 May 2025
Copy link to clipboard 
Print this post

  Volhout said  @ManiB,

That is early work (2015).
10 years ago... wauw...

Volhout
.


In fact, this was a very early time to port MMBasic to the STM32F746NG MCU.

I did a quick search here in the forum to find out when the first versions of CMM2 were released.

Overview of Colour Maximite 2 Versions

CMM2 (First Version)
First Mention: June 2020
Processor: Microchip PIC32MZ EF (ARM Cortex-M7, up to 200 MHz, 2 MB Flash, 512 KB SRAM, 176-pin)
Source: TheBackShed.com, Silicon Chip

CMM2 G2 (Generation 2)
First Mention: December 3, 2020
Processor: Microchip PIC32MZ EF (ARM Cortex-M7, up to 480 MHz, 2 MB Flash, 1 MB SRAM)
Source: TheBackShed.com (?), Silicon Chip (August/September 2021)

CMM2 G2 V2
First Mention: October 2, 2024, with development starting April 4, 2024 (schematic)
Processor: STMicroelectronics STM32H743IIT6 (ARM Cortex-M7, 480 MHz, 2 MB Flash, 1 MB SRAM, 176-pin LQFP)
Source: TheBackShed.com
Edited 2025-05-21 06:16 by ManiB
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4904
Posted: 09:02am 21 May 2025
Copy link to clipboard 
Print this post

AFAIK the CMM2 has always been STM32 based.
The PIC32MZ family uses MIPS core, not ARM core.

But I think the 2015 port of MMBasic to STM32 was before CMM2 was concepted.

Volhout
.
PicomiteVGA PETSCII ROBOTS
 
Print this page


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

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