Jump to content
IGNORED

[WIP] MAFIA - port of a c64 game


Recommended Posts

After several hours, I present you the first beta of MAFIA for Atari 8-bit.

This game is more or less a classic on the C64, and i tried to port it to A8.

Clearly, as an A8 beginner, I had some problems creating a 1:1 port,

thus, the map looks quite different. However, the rest should be rather

close to the original (given that I had the BASIC sources available).

 

There will be still (severe) bugs.

 

Not even sure if loading/saving will work as expected,

and since I did not play it through, I even do not know if one can 'win'

this game right now.

 

However, I am grateful for any bugs reports (here or on github).

 

The graphics are more or less a mess. Sound is even not existing.

 

Not sure how much I will try to polish them, help is welcome.

 

The game is localised in german and english, however, the english part

was translated quickly by ChatGPT, so it might be off here and there.

Also, the text is partly not very aligned (centered or otherwise).

 

I have no idea if this thing will run on real hardware.

 

I was able to run it in my emulator. Hope to test it soon on an A8.
 

Full sources and ATR image can be found here:
https://github.com/drunkeneye/MAFIA.A8

 

 

Screenshot 2024-03-03 at 01.02.21.png

Screenshot 2024-03-03 at 00.48.46.png

Screenshot 2024-03-03 at 00.49.01.png

Screenshot 2024-03-03 at 01.02.06.png

  • Like 25
Link to comment
Share on other sites

9 minutes ago, Marsupilami said:

Very cool thanks 😎

For me, the game loops on this screen :mafia.png.e704da988e8788649eedb38543673ce0.png

 

aww, thanks for the bug, will try to find where the overflow happens, hopefully this evening.

 

  • Thanks 1
Link to comment
Share on other sites

 

1 hour ago, Philsan said:

Eventually I managed to exit the endless loop and get this.

 

screenshot.png.b5a4975896300e4746baa0f73aee2239.png

 

Which emulator did you use?

 

omg, that looks like i overwrite accidently some memory.

that would also explain the endless loop.

not sure how to debug this.

i had this error before, but eventually after debugging it did not appear anymore,

so i thought it is fixed.

 

i use Atari800MacX with stock 64kb. 

will try 320K Rambo to see if that has an effect.

 

sorry guys for the bugs 😕

 

  • Like 1
Link to comment
Share on other sites

ok, something is broken 😕 

it already starts with the wanted poster, and higher rank,

something gets overwritten.

it could be the ATR. i recompiled and now it looks better.

i will test a few minutes then upload a new ATR.

at times i had too much code, and since variables start

at $BE80, changing the variables would occasionally

change data/code.

 

 

Link to comment
Share on other sites

12 minutes ago, drunkeneye said:

sorry guys for the bugs 😕

 

Don't worry, it's a beta release :) 
B.T.W. i had the same problem on a stock 800xl PAL (+fujinet) with tfhh 512K memory expansion (it acts like a Rambo).

20240304_210527.thumb.jpg.1517959168216934df9613b9c11809a4.jpg
 

Link to comment
Share on other sites

16 minutes ago, Marsupilami said:

Don't worry, it's a beta release :) 
B.T.W. i had the same problem on a stock 800xl PAL (+fujinet) with tfhh 512K memory expansion (it acts like a Rambo).

20240304_210527.thumb.jpg.1517959168216934df9613b9c11809a4.jpg
 

 

yeah, but i really really waited until it was feature complete and

looked like playable, so until its really beta and not just alpha ;)

 

guess, i screwed it.

 

i have now uploaded a new ATR to github, it might be that i assume

that all memory is zero when starting. now i explicitly initialize the memory.

no idea if this helps, but i do not see any apparent error, and i still

find this very hard to debug.

 

 

Link to comment
Share on other sites

12 minutes ago, drunkeneye said:

i have now uploaded a new ATR to github, it might be that i assume

that all memory is zero when starting. now i explicitly initialize the memory.

no idea if this helps, but i do not see any apparent error, and i still

find this very hard to debug.

 

 

The new ATR is better. But there's a problem with left/right movement. I can only move up and down. (both stock 800xl and Altirra)

Link to comment
Share on other sites

Just now, Marsupilami said:

The new ATR is better. But there's a problem with left/right movement. I can only move up and down. (both stock 800xl and Altirra)

sorry, it is probably the key mapping. i mapped it to an american keyboard, using [ / ; ' keys. 

thats the keys the c64 original used. 

i tried to add joystick support, but i couldnt really test joystick on the emulator so not sure if that works.

 

any idea on what keys i should map to? usual WASD?

 

Link to comment
Share on other sites

so the code is here

 

#$02: dir_x := -1;
#$73: dir_x := +1;
#$60: dir_y := -1;
#$26: dir_y := +1;
 

 

and $02 = ; and $73 = "  following the keycodes in blibs.pas

might be very strange on a real atari, but it doesnt run there to check 😕

 

 

Link to comment
Share on other sites

I tried with the joystick only, and up/down are working. To test within your emulator, there is a basic program here : https://www.atariarchives.org/c2ba/page002.php
Another way of testing would be to install a VM with a windows and install Altirra. In Altirra the joytick is simulated with the keyboard arrows but you can define you own.

The real 800xl has some arrows on the keyboard. However i never used the arrows in games, only the joystick.

image.thumb.png.dc5dafb9c07f45c5eec0f47d08fed2ad.png

Link to comment
Share on other sites

12 hours ago, Marsupilami said:

I tried with the joystick only, and up/down are working. To test within your emulator, there is a basic program here : https://www.atariarchives.org/c2ba/page002.php
Another way of testing would be to install a VM with a windows and install Altirra. In Altirra the joytick is simulated with the keyboard arrows but you can define you own.

The real 800xl has some arrows on the keyboard. However i never used the arrows in games, only the joystick.

image.thumb.png.dc5dafb9c07f45c5eec0f47d08fed2ad.png

 

yes, i am using Atari800MacOSX, should be comparable to Altirra.

i had a bug in the joystick code (and tested it wrong), joystick should work now

(at least on the map).

 

thanks again for testing!

 

Link to comment
Share on other sites

1 hour ago, _The Doctor__ said:

cross check translations with deepl

 

thanks, i tried that, but felt that it did not really help, for example, in german its all "You"=2nd person,

i think in polish there is the same thing, but chatgpt seemed to have translate it to "you"=formal 2nd person

and deepl (when translating forth and back) did somehow the same thing. 

 

will fix that later, could ask a friend to do that, right now priority for me is to get it running on a real atari

to see how that feels. 

 

 

Link to comment
Share on other sites

the more people comment on translations the better. there are plenty of machine translations ive seen that just don't sound right. of course there is us uk canada austrailian English. It probably wont come out perfect for  everyone. 

Link to comment
Share on other sites

On 3/6/2024 at 1:22 AM, Mathy said:

Hello drunkeneye

 

Polish?  Hmm.  We may have some Polish people in the Atari 8 bit scene, but I'm not sure.   😃🫠😇😂🤪

 

Sincerely

 

Mathy

 

yes, that localization is supposed to be a tribute to one of the strongest atari scenes ;)

 

Link to comment
Share on other sites

On 3/6/2024 at 3:16 AM, 351cougar said:

the more people comment on translations the better. there are plenty of machine translations ive seen that just don't sound right. of course there is us uk canada austrailian English. It probably wont come out perfect for  everyone. 

yes, and the current english translation is not perfect either, i hope that after

fixing bugs someone here can help me fix it. and also the graphics. and

also the music ;) and the code needs some polish too. actually the only thing

i am certain of is the german translation 😊

 

Link to comment
Share on other sites

On 3/6/2024 at 3:16 AM, 351cougar said:

the more people comment on translations the better. there are plenty of machine translations ive seen that just don't sound right. of course there is us uk canada austrailian English. It probably wont come out perfect for  everyone. 

Just go with the most spoken language in the world. And that´s not English, Chinese, Arab or anything. It actually is BAD english. 😆

  • Like 1
  • Haha 4
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...