- Top Stats

Top Posters Top Topic Starters Top Topics
NewsBot 1453
Gryzor 738
TFM 649
TotO 500
MacDeath 221
NewsBot 1117
Gryzor 19
Border_7 11
eliot 9
SyX 9
X-MASS, a mass... - 156804 Views TotO 19:32, 14 December 14
X-MEM, a new m... - 99844 Views TotO 22:41, 26 April 14
Amstrad CPC 16... - 79809 Views SyX 21:31, 01 January 13
*FR* - FenixIn... - 44849 Views NewsBot 01:01, 13 January 11
Pac-Man emulat... - 28256 Views TotO 01:01, 02 April 12


Author Topic: Pac-Man emulator for CPC  (Read 28257 times)

0 Members and 1 Guest are viewing this topic.

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.261
  • Country: au
    • index.php?action=treasury
  • Liked: 932
Re: Pac-Man emulator for CPC
« Reply #25 on: 02:49, 05 April 12 »
WOW! Absolutely remarkable!
 
I presume that pacman.bin contains "layer" or "driver" code to process/interpret the roms?
And it still runs really well!
 
It really puts other pacman games on the cpc to shame, especially considering that the others ran native cpc code.
 
« Last Edit: 02:51, 05 April 12 by ervin »
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 390
Re: Pac-Man emulator for CPC
« Reply #26 on: 03:07, 05 April 12 »
WOW! Absolutely remarkable!
 
I presume that pacman.bin contains "layer" or "driver" code to process/interpret the roms?
And it still runs really well!
 
It really puts other pacman games on the cpc to shame, especially considering that the others ran native cpc code.

I'd assume the driver patches all the calls to place sprites, queue sound etc, (some of which are normally done through RST instructions on the arcade hardware). Are you going to release the source code to the driver? I'd like to see how you emulate the Pacman sound chip.

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.262
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2426
Re: Pac-Man emulator for CPC
« Reply #27 on: 11:12, 05 April 12 »
I'm surprised that no news was made on the first page of CPC Wiki...
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.091
  • Country: br
  • Liked: 1017
Re: Pac-Man emulator for CPC
« Reply #28 on: 18:54, 05 April 12 »
Are you going to release the source code to the driver? I'd like to see how you emulate the Pacman sound chip.
Yes, i will publish the sources in a few weeks, if there is not bug reports or suggestions... but publishing now it will reveal the cheat mode too soon  ;D

The sound chip emulation is exactly to the spectrum version (the sources are in the Simon Owen site), i use an 8KBs table to convert from the sound generated in the arcade to the PSG, of course, the frequencies are calculated for the CPC AY clock.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Re: Pac-Man emulator for CPC
« Reply #29 on: 19:24, 05 April 12 »
I'm surprised that no news was made on the first page of CPC Wiki...

DIY!
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.091
  • Country: br
  • Liked: 1017
Re: Pac-Man emulator for CPC
« Reply #30 on: 20:58, 05 April 12 »
I have added it, i though that only Gryzor had permission to modify the main cpcwiki page.

Offline 00WReX

  • 6128 Plus
  • ******
  • Posts: 662
  • Country: au
  • The time you enjoy wasting is not wasted time.
    • index.php?action=treasury
    • CPCwiki
  • Liked: 360
Re: Pac-Man emulator for CPC
« Reply #31 on: 12:30, 06 April 12 »
As others have mentioned the PACMANF version is really nice and smooth...really cool on a real CPC.
Originally I had only tried the normal Namco version...which also run fine, but the Fast version really is good.
 
Just a quick question to TotO & SyX...how long were you guys working on this, it has turned out really well, you must be pleased with it.
Great work...
 
Cheers,
Shane
The CPC in Australia...
Awa - CPCWiki

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.091
  • Country: br
  • Liked: 1017
Re: Pac-Man emulator for CPC
« Reply #32 on: 14:38, 06 April 12 »
Just a quick question to TotO & SyX...how long were you guys working on this, it has turned out really well, you must be pleased with it.
Great work...
Thanks!!!  :D

Well, the wonderful TotO game graphics were finished before i could write any line of code, i saw them in the thread about the speccy version and i love the arcade feel, i thought it would be a shame that don't make them alive. The next step was asking to Simon Owen permission to base it in his wonderful work with the sam and speccy versions... you can see the roots in the code, but a big part is changed because we need to optimize a lot to use our graphics (bigger and of course, slower to print :P ).

After that i began to code, he made a lovely loading screen (seeing in my CPC attached to TV by scart was one of the best moments for me), the main part of the cpc code was made after the first pair of weeks (middle of december)... and my war to optimize the sprites routines began, there was a lot of pauses in the last 3 months (life -my nephew stole all my free time  :P -, another projects with more priority and well, i'm a lazy coder  ;D ), lucky me TotO is a great person to work in a project and he always is giving a lot of WONDERFUL ideas. The last version of the sprite routines were made during the second half of march, and in the last week we added the raster setting menu, the cheat mode and a lot of micro-optimizations to reduce more the slowdowns.

An important thing, we made a lot of tests in real machine, not only for see that worked correctly; too, for testing ideas that worked better in the real machine attached to CRTs than emulators.


... and a crazy last minutes of the last sunday xDDDD
« Last Edit: 14:52, 06 April 12 by SyX »

Offline 00WReX

  • 6128 Plus
  • ******
  • Posts: 662
  • Country: au
  • The time you enjoy wasting is not wasted time.
    • index.php?action=treasury
    • CPCwiki
  • Liked: 360
Re: Pac-Man emulator for CPC
« Reply #33 on: 14:55, 06 April 12 »
Thanks for the reply SyX, that's great  :D
 
Cheers,
Shane
The CPC in Australia...
Awa - CPCWiki

Offline khisanth

  • CPC6128
  • ****
  • Posts: 245
  • Country: england
  • Retro all the way baby!
    • khisanth.com
  • Liked: 18
Re: Pac-Man emulator for CPC
« Reply #34 on: 17:04, 06 April 12 »
hehe it actually works!

Offline DARKGATE

  • CPC6128
  • ****
  • Posts: 156
  • Country: it
  • Liked: 54
Re: Pac-Man emulator for CPC
« Reply #35 on: 11:01, 09 April 12 »
 :) Great!!!, but i have a problem, after wich i have made the disk (WORK PERFECTLY) i have tried to convert in a file .CDT.
The file .cdt work only for the screen of presentation, but the game don't load anymore, someone can help me for made a TAPE VERSION? Thank you. :)
Do not underestimate the power of AMSTRAD CPC.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 14.833
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2853
Re: Pac-Man emulator for CPC
« Reply #36 on: 12:08, 09 April 12 »
[off-topic]No, it's open to everyone as you have seen :) It's just that, usually, it's me who does the update son the homepage, so I guess people assume I'm the only one who can do it. But, there are times where I don't have the time to do it so some things may lag behind...


When this is the case, btw, it's better to send me a PM or an email or something; "complaining" in a forum thread will probably not get much attention when I don't visit :D


Cheers
T

I have added it, i though that only Gryzor had permission to modify the main cpcwiki page.



Offline DARKGATE

  • CPC6128
  • ****
  • Posts: 156
  • Country: it
  • Liked: 54
Re: Pac-Man emulator for CPC
« Reply #37 on: 18:43, 10 April 12 »
:) Great!!!, but i have a problem, after wich i have made the disk (WORK PERFECTLY) i have tried to convert in a file .CDT.
The file .cdt work only for the screen of presentation, but the game don't load anymore, someone can help me for made a TAPE VERSION? Thank you. :)

 :( Please someone can help me?
I want play the game on my real CPC 464 with RAM, the .cdt file don't work me, a PM message if there are problems, thank you.
Do not underestimate the power of AMSTRAD CPC.

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.091
  • Country: br
  • Liked: 1017
Re: Pac-Man emulator for CPC
« Reply #38 on: 19:59, 10 April 12 »
Tape version? Well, i never though about it. But you can use the files in the DSK that i have attached, you need to put the files in the following order PACMAN.BAS + ROM_FILES  + PACMAN.BIN.

If you have any problem, tell me. Because it's a fast hack for an user with a Hard Disk & BonnyDOS. Is there an emulator that support an HD image and BonnyDOS, anybody??? I'm not able to make it work in WinAPE, or if somebody can send me an HD image that works in WinAPE, i'll be very grateful  ;)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Re: Pac-Man emulator for CPC
« Reply #39 on: 21:52, 10 April 12 »
Ok, for people who don't know where to get the ROM images:
 
- Take the above DSK
- Read its DIRectory using FutureOS
- Mark the four files at user &E5
- Click REName icon and change the four files user number back to &00
- Reset CPC, start PacMan and have fun
 
 
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.262
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2426
Re: Pac-Man emulator for CPC
« Reply #40 on: 22:14, 10 April 12 »
Nice easter egg...  ;D
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Re: Pac-Man emulator for CPC
« Reply #41 on: 23:24, 10 April 12 »
 :-X
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline DARKGATE

  • CPC6128
  • ****
  • Posts: 156
  • Country: it
  • Liked: 54
Re: Pac-Man emulator for CPC
« Reply #42 on: 00:44, 11 April 12 »
 :) Thank you, hope of make a tape version in this week, if i have problems write here, thank you again.  :)
Do not underestimate the power of AMSTRAD CPC.

Offline DARKGATE

  • CPC6128
  • ****
  • Posts: 156
  • Country: it
  • Liked: 54
Re: Pac-Man emulator for CPC
« Reply #43 on: 18:59, 11 April 12 »
 :D Thank you, now i have made the PACMAN.cdt file, work perfectly, i haven't tried on my real CPC 464 with RAM, but when made the real tape, put a photo here  ;D .
However there are many slowdown when play it  :( .
Do not underestimate the power of AMSTRAD CPC.

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.262
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2426
Re: Pac-Man emulator for CPC
« Reply #44 on: 19:32, 11 April 12 »
However there are many slowdown when play it  :(
You overestimated the power of AMSTRAD CPC.
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Re: Pac-Man emulator for CPC
« Reply #45 on: 19:37, 11 April 12 »
However there are many slowdown when play it  :( .

That's the CAI[nb]CPC Artificial Intelligence (c) and (cpc) by SyX[/nb]. It analyzes the way the player moves the PacMan itself, and depending on the way the player plays it will adjust the speed to support players with delayed senses. It happens to me all the time  ;) :laugh: . But there are the "f" versions of the ROMs in which the CAI variable is set to "f"alse, so they will run at full speed.
 
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.091
  • Country: br
  • Liked: 1017
Re: Pac-Man emulator for CPC
« Reply #46 on: 19:41, 11 April 12 »
:D Thank you, now i have made the PACMAN.cdt file, work perfectly, i haven't tried on my real CPC 464 with RAM, but when made the real tape, put a photo here  ;D .
Thanks!!! :D

However there are many slowdown when play it  :( .
It's strange, it could be related to the emu that you are using...

There is slowdowns, but nothing too bad for making the experience not enjoyable. It plays very well in real cpc and the emulators that i used to develop it (winape + caprice).

Offline Joseman

  • 6128 Plus
  • ******
  • Posts: 778
  • Country: es
  • Liked: 628
Re: Pac-Man emulator for CPC
« Reply #47 on: 02:17, 16 April 12 »
Hi

This is awesome, good work!!

One question, how can i play piranha?

the game has the 4kb roms split in 2kb roms, i assume that merge de 2kb files back to 4kb files is needed, but, what is the order 2kb+2kb and how rename correctly the resultant roms?.



Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.262
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2426
Re: Pac-Man emulator for CPC
« Reply #48 on: 10:07, 16 April 12 »
One question, how can i play piranha?

the game has the 4kb roms split in 2kb roms, i assume that merge de 2kb files back to 4kb files is needed, but, what is the order 2kb+2kb and how rename correctly the resultant roms?.
I think that you may search for another set with the good size files.
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.091
  • Country: br
  • Liked: 1017
Re: Pac-Man emulator for CPC
« Reply #49 on: 18:03, 16 April 12 »
One question, how can i play piranha?
Of course, you can :)

The correct order is:
pir1 +pir5 = pacman.6e
pir2 +pir6 = pacman.6f
 pir3 +pir7 = pacman.6h
 pir4 +pir8 = pacman.6j
 
If you have any problem with another clone, split the pacman roms in 2048 bytes and you will see the characteristic binary patterns (Enter the Matrix  ;D )