Author Topic: Micro Machines 2 (Game Gear)  (Read 15630 times)

0 Members and 1 Guest are viewing this topic.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Micro Machines 2 (Game Gear)
« on: April 16, 2011, 08:52:53 am »
Let's see how far this goes... hacked for mapping but I might make it a bit more interactive...
« Last Edit: April 16, 2011, 10:57:21 am by Maxim »

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #1 on: April 16, 2011, 10:58:06 am »
So I made the hack so it's interactive (d-pad controls camera). Here we go...
« Last Edit: April 16, 2011, 11:02:04 am by Maxim »

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #2 on: April 16, 2011, 01:03:51 pm »
Bear in mind these are on a system with the same resolution as a Game Boy... it's like painting a room with a toothbrush :) They also take forever to PNGOUT on my netbook...

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #3 on: April 18, 2011, 06:31:23 am »
I'm skipping the bonus games for now as they are quite hard work.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #4 on: April 18, 2011, 06:35:53 am »
Just in case it gets lost before I finish, here's the hack:

Code: [Select]
.memorymap
slotsize $4000
slot 0 $0000
slot 1 $4000
slot 2 $8000
defaultslot 2
.endme

.rombankmap
bankstotal 32
banksize $4000
banks 32
.endro

.background "mm2.gg"

.define scrollx $c137
.define scrolly $c139

.unbackground $69 $ff

.bank 2 slot 2
.orga $bc0f
.section "Hack redirection" overwrite
  jp hack
.ends

.bank 0 slot 0
.section "hack" free
hack:
  ; get inputs
  in a,($dc)
  ld b,a
  ; Y
  ld hl,(scrolly)
  ld a,h
  or l
  jr z,+
  bit 0,b
  jr nz,+
  dec hl
  dec hl
  dec hl
  dec hl
+:bit 1,b
  jr nz,+
  inc hl
  inc hl
  inc hl
  inc hl
+:ld (scrolly),hl
  ; X
  ld hl,(scrollx)
  ld a,h
  or l
  jr z,+
  bit 2,b
  jr nz,+
  dec hl
  dec hl
  dec hl
  dec hl
+:bit 3,b
  jr nz,+
  inc hl
  inc hl
  inc hl
  inc hl
+:ld (scrollx),hl
  bit 4,b
  ret nz
  ; return to game
  ; what should happen but we overwrote it...
  ld a,($c126)
  ; where we came from
  jp $bc13
.ends

Assembles in WLA DX (wla-z80). Any time the game scrolls to the player, i.e. when the race starts, when you respawn or go through a pool table, it will enter a state where the D-pad scrolls the camera (via the game's camera motion smoothing routines). Press 1 to exit this state.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #5 on: April 19, 2011, 02:37:04 am »
Four attachments per post...

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #6 on: April 19, 2011, 02:37:43 am »
...is annoying when you have six maps.

Offline TerraEsperZ

  • Hero Member
  • *****
  • Posts: 2301
Re: Micro Machines 2 (Game Gear)
« Reply #7 on: April 19, 2011, 05:09:26 am »
Impressive work! And you have *no* idea how jealous I am of your ASM skills...
Current project that are on hold because job burnout :
-Drill Dozer (GBA)
-Sonic 3D Blast (Genesis)
-Naya's Quest (PC)

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #8 on: April 19, 2011, 07:10:41 am »
I'm not sure I could go back to making maps the old-fashioned way :)

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #9 on: April 19, 2011, 02:24:10 pm »
The last two challenge tracks and onto the Super League. I still need to do those bonus levels...
« Last Edit: April 20, 2011, 06:35:00 am by Maxim »

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #10 on: April 20, 2011, 02:09:19 am »
A little more hacking and I know how to hack the levels. There are 36 in total, but at least two have names but no level data (the basement stages), so I'm about 70% done. Remaining levels:

Raining Champ
Turbo Turns
Step On It
Water Chase
Frosty Reception
Jelly Jitters
Turbo Blast
Picnic Problems
Plate Hop
Ferry Fiasco

The level numbers are stored in ROM at $3a684 for the Super League followed at $3a694 for the Challenge mode. 2-player lets you choose between the first 19 of them all.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #11 on: April 20, 2011, 06:33:30 am »
I just did another three in my lunch break... Raining Champ doesn't have any "rain" layer because I prefer it without.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #12 on: April 20, 2011, 02:36:50 pm »
Almost done... except I need to align some of the others to the 96x96 grid, and the bonus levels.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #13 on: April 20, 2011, 02:38:34 pm »
And that's all the regular levels.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: Micro Machines 2 (Game Gear)
« Reply #14 on: April 21, 2011, 04:00:19 pm »
Finished, posted at http://www.smspower.org/Maps/MicroMachines2-GG and emailed to Jon.