Author Topic: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)  (Read 4215 times)

0 Members and 1 Guest are viewing this topic.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 16.011
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3452
  • Likes Given: 6194
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #25 on: 18:41, 18 September 20 »
We have to go deeper.

Offline pelrun

  • Supporter
  • 6128 Plus
  • *
  • Posts: 661
  • Country: au
    • index.php?action=treasury
  • Liked: 349
  • Likes Given: 217
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #26 on: 19:18, 18 September 20 »
Oops, I totally thought it was 40Crisis who posted that  :picard2: :doh:

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.773
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2892
  • Likes Given: 1742
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #27 on: 20:43, 18 September 20 »
This is my lame attempt to emulate GB Tetris on a CPC ;D
Can we expect to have something like that? (very WIP theme)
« Last Edit: 22:16, 18 September 20 by TotO »
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #28 on: 21:48, 18 September 20 »
As the GB hardware is more-or-less Z80 based, is your application emulating all the GB or "just" some parts ?
Anyway I am impressed !
Tetris was one of the first GB game, if not the first.
It's not a very demanding game, that's why emulating it on a CPC is possible.
Gameboy processor is very close to Z80.
 I "only" needed for tetris to add emulation support for 8 extra instructions not present in Z80.
It doesn't use "tricky" graphics rendering, the graphics emulation engine just fit this.
Also sound emulation is very basic.



Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #29 on: 21:55, 18 September 20 »
It's really impressive indeed, I wonder if other games would be possible? I imagine Super Mario Land may struggle with the scrolling...?
It's possible because tetris is not a very demanding game.Keep in mind you have to render on the CPC at 60hz background graphics in 4 colors (160x144) + up to 40  8x8 sprites


Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #30 on: 22:04, 18 September 20 »
A minor thing to report - got to the ending on Type A - the rocket ship taking off is quite glitchy and flickery. Not complaining, just reporting things as I find.
I'm absolutely loving this of course :)
I'm perfectly aware of how imperfect it is in the bonuses parts. I spent many time trying to fix it and find the best compromise.
In this part of the game, 40 sprites 8x8 need to be renderered. That's why it"s very slow on the CPC (major framerate drop ).
Fortunately, ingame only up to 12 sprites 8x8 are needed.
« Last Edit: 22:23, 18 September 20 by 40Crisis »

Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #31 on: 22:25, 18 September 20 »
Can we expect to have something like that? (very WIP theme)
I'll try if you can provide me with cpc palette data

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.773
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2892
  • Likes Given: 1742
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #32 on: 22:27, 18 September 20 »
I'll try if you can provide me with cpc palette data
OK, I will give you that and a new palette too if you like it. :)


« Last Edit: 23:18, 18 September 20 by TotO »
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.773
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2892
  • Likes Given: 1742
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #33 on: 22:43, 18 September 20 »
@40Crisis : The idea is to use, if possible, a 256x224 screen area and a white border to fake the Game Boy bezel.

Theme 01 test:
- BORDER = 26
- INK 0 = 3
- INK 1 = 13
- INK 2 = 16
- INK 3 = 25

Theme 02 test:
- BORDER = 26
- INK 0 = 9
- INK 1 = 13
- INK 2 = 12
- INK 3 = 25

Theme 03 test:
- BORDER = 26
- INK 0 = 0
- INK 1 = 13
- INK 2 = 12
- INK 3 = 25
« Last Edit: 15:12, 24 September 20 by TotO »
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline zeropolis79

  • 6128 Plus
  • ******
  • Posts: 578
  • Country: gb
  • Liked: 149
  • Likes Given: 14
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #34 on: 23:46, 18 September 20 »
In theory, if it was renamed to the same filename required for the program, could other early Gameboy games be run on this program?

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.773
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2892
  • Likes Given: 1742
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #35 on: 23:56, 18 September 20 »
In theory, if it was renamed to the same filename required for the program, could other early Gameboy games be run on this program?
The ROM is probably patched to get control over it. And no scrolling support, but Dr.Mario may be?  ;D
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline vasilisk

  • CPC664
  • ***
  • Posts: 85
  • Country: gr
  • CPC6128
  • Liked: 23
  • Likes Given: 127
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #36 on: 00:02, 19 September 20 »
Do we save "with header" or "without header" ?

Online XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 829
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 1776
  • Likes Given: 1320
your amstrad news source in spanish language : https://auamstrad.es

Offline pelrun

  • Supporter
  • 6128 Plus
  • *
  • Posts: 661
  • Country: au
    • index.php?action=treasury
  • Liked: 349
  • Likes Given: 217
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #38 on: 11:01, 19 September 20 »
Do we save "with header" or "without header" ?
You absolutely need the header, otherwise AMSDOS can't load it as a binary file.

Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #39 on: 12:18, 19 September 20 »
@40Crisis : The idea is to use, if possible, a 256x224 screen area and a white border to fake the Game Boy marquee.

Theme 01 test:
- BORDER = 26
- INK 0 = 3
- INK 1 = 13
- INK 2 = 16
- INK 3 = 25

Theme 02 test:
- BORDER = 26
- INK 0 = 9
- INK 1 = 13
- INK 2 = 12
- INK 3 = 25

Theme 03 test:
- BORDER = 26
- INK 0 = 0
- INK 1 = 13
- INK 2 = 12
- INK 3 = 25

Test version - resolution changed to 256x224 + 3 sets of palette - Personally, I only like the theme03 because the others give "messy" menus
« Last Edit: 12:19, 19 September 20 by 40Crisis »

Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #40 on: 12:20, 19 September 20 »
In theory, if it was renamed to the same filename required for the program, could other early Gameboy games be run on this program?
Sorry, no way

Offline pelrun

  • Supporter
  • 6128 Plus
  • *
  • Posts: 661
  • Country: au
    • index.php?action=treasury
  • Liked: 349
  • Likes Given: 217
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #41 on: 13:13, 19 September 20 »
In theory, if it was renamed to the same filename required for the program, could other early Gameboy games be run on this program?
It's best not to think of this as emulation. It's more accurately a port, replacing the gameboy-specific code in the rom with CPC equivalents. It just happens to do it on the fly rather than being packaged as a pre-modified binary.

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.773
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2892
  • Likes Given: 1742
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #42 on: 13:38, 19 September 20 »
Test version - resolution changed to 256x224 + 3 sets of palette - Personally, I only like the theme03 because the others give "messy" menus
It seems less empty like that.
Thank you! ;D

Sure, the palettes tests are probably not the best choice. Sorry I will rethink about that!!!
Can we add few design things on the screen to improve the bezel visual?
(palette update for the colour strips, texts and rounded corners)
« Last Edit: 15:21, 24 September 20 by TotO »
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline zeropolis79

  • 6128 Plus
  • ******
  • Posts: 578
  • Country: gb
  • Liked: 149
  • Likes Given: 14
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #43 on: 13:45, 19 September 20 »
Thanks - I've not had the chance to try it yet but I'll be trying it on my Plus this evening..

Offline Skunkfish

  • Supporter
  • 6128 Plus
  • *
  • Posts: 579
  • Country: gb
  • Editor of Colour Personal Computing
    • CPCSTORE.CO.UK - Dedicated to the Amstrad CPC
  • Liked: 424
  • Likes Given: 1068
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #44 on: 19:27, 19 September 20 »
TotO, that marquee looks stunning! I hope 40Crisis has a chance to implement?  ;D
An expanding array of hardware available at www.cpcstore.co.uk (and issue 3 of CPC Fanzine!)

Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #45 on: 21:47, 19 September 20 »
It seems less empty like that.
Thank you! ;D

Sure, the palettes tests are probably not the best choice. Sorry I will rethink about that!!!
Can we add few design things on the screen to improve the marquee visual?
(palette update for the colour strips, texts and rounded corners)
Toto, do you have the inlay in cpc format with palettes values ?

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.773
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2892
  • Likes Given: 1742
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #46 on: 21:50, 19 September 20 »
TotO, do you have the inlay in cpc format with palettes values ?
Sure, I can provide you what you want. (may be not today)
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline 40Crisis

  • CPC664
  • ***
  • Posts: 67
  • Liked: 201
  • Likes Given: 16
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #47 on: 21:52, 19 September 20 »
Sure, I can provide you what you want. (may be not today)
Thanks

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 879
  • Country: fr
    • urban exploration
  • Liked: 1176
  • Likes Given: 722
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #48 on: 11:50, 21 September 20 »
Hi @40Crisis Can you tell us how the emulator works?
Thank you
use RASM, the best assembler ever made :p

I will survive

Offline norecess

  • CPC6128
  • ****
  • Posts: 161
  • Country: ca
  • Liked: 323
  • Likes Given: 159
Re: GB TETRIS EMULATOR TEMU FOR AMSTRAD CPC 6128(+)
« Reply #49 on: 18:24, 21 September 20 »
Woaahh this reminds me the excitement I got when I discovered Syx/TotO's PacMan emulator few years ago..!

Splendid, I'm sincerely impressed.

Please, release a V2 with some (if not all..) of the improvements from TotO ! :)
« Last Edit: 18:34, 21 September 20 by norecess »