English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 12 November 2019, 19:19   #1
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Amiga 1942 conversion

Hi all.

I've recently gotten back to Amiga assembly programming.
After playing around a bit, I'm ready to start a bigger development project.

With MAME and UAE being available converting an old arcade game seems a good choice.
After retrieving some of my old stuff, I found some old 1942 code I started working on around 1993, but never finished. So I have decided to go ahead with this project.

Development tools currently used:
Linux
FS-UAE
AsmOne. Will probably switch to Vasm once I get my Linux updated
Git
Mame
DeluxePaint 4.5
XnView MP (PNG->IFF)
PicCon (IFF->RAW)
Tiled (Mapping tiles)


I'm currently targetting OCS chipset. Using lots of memory for development, on OS3.1.

I'm looking for people to join the project in these areas:
Sound FX
Mapping out the original arcade levels, from the tileset
Repositioning sprite gfx dumps to fit amiga
Recolouring sprite gfx. Arcade hardware can draw sprites in multiple pens. Amiga game needs copies.
agermose is offline  
Old 12 November 2019, 19:26   #2
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 43
Posts: 15,654
Nice one agermose

Hope that you finish it

1943: The Battle Of Midway on the Amiga isn't great
DamienD is online now  
Old 12 November 2019, 19:31   #3
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Quote:
Originally Posted by DamienD View Post
Nice one agermose

Hope that you finish it

1943: The Battle Of Midway on the Amiga isn't great
Thanks. I'll try and make regular progress updates here.
agermose is offline  
Old 13 November 2019, 17:25   #4
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Small update:

1942 arcade has a 256x512 pixels tile screen buffer of which 224x256 is shown. Tiles are 16x16 pixels. There are 512 background tiles.
On top of this is the 256x256 character layer of which 224x256 is shown, and the HW sprites. Sprites are also ordered in 16x16 pixels, 512 in all. Bigger enemies are composed of multiple blocks.

I will run a 224x256 Amiga screen using 16x16 tiles for the background. This will make it easy to reuse the arcade gfx.
The sprites will be done using SW sprites (Bobs).
The arcade sprites need to be recomposed for Amiga, which can use sprites in other sizes than 16x16.
Still thinking about how to do the character layer.
Hw sprites may be used for parts of the character layer, e.g. score, lives, loops.

I will need 32 colours to get the right look of the arcade, so 5 bitplanes.
2 colours will have to be reserved for propeller animation.

Game should run in 50 fps, on OCS.

Progress:
I have set up a dual buffer system for a 320x256x5 interleaved screen. This way I only need to do one blit per tile/sprite.
The background is scrolled using a "barrel" scroll, so each buffer is actually 320x272x5.
The extra (hidden) tile row is blitted into from the restore buffer every 16 frames.
The restore buffer is constructing a new tile row from the map every 16 frames.
This buffer is used to restore background data (the hidden buffer) every frame.

Sprites are blitted on top of the background (the hidden buffer) every frame.
When sprites go across the "barrel split" they are blitted (and restored) in 2 parts. This part took some time to get right :-)

Next up is getting the palette sorted out.

Last edited by agermose; 13 November 2019 at 18:23.
agermose is offline  
Old 13 November 2019, 17:37   #5
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Click image for larger version

Name:	IMG_5336.jpg
Views:	1012
Size:	511.1 KB
ID:	65159

Still looking for people to help out...

(Yes I know it says Amiga1200. It's my favourite dev env. Code is compiled to 68000, and only OCS hw used)
agermose is offline  
Old 13 November 2019, 17:58   #6
Amigajay
Registered User
 
Join Date: Jan 2010
Location: >
Posts: 2,043
Nice, good luck with the project!
Amigajay is offline  
Old 14 November 2019, 10:54   #7
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,345
Quote:
Originally Posted by agermose View Post
I will need 32 colours to get the right look of the arcade, so 5 bitplanes.
2 colours will have to be reserved for propeller animation.
If you're short of colours, why not just have 3 different BOBs for the plane with the propeller at different positions and blit them in sequence? After all, you're blitting them every frame anyway so there won't be a time penalty, just a few more bytes of chip RAM.
Daedalus is offline  
Old 14 November 2019, 11:10   #8
Pyromania
Moderator

Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 2,166
Nice project!
Pyromania is offline  
Old 14 November 2019, 13:55   #9
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Quote:
Originally Posted by Daedalus View Post
If you're short of colours, why not just have 3 different BOBs for the plane with the propeller at different positions and blit them in sequence? After all, you're blitting them every frame anyway so there won't be a time penalty, just a few more bytes of chip RAM.
Yes that would be an option, if only the main plane had propellers, but all the enemies do as well. So this is not possible.
agermose is offline  
Old 14 November 2019, 15:09   #10
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,507
Super great project, nice that you have the vertical scrolling code working. I'm currently working on my 8 way now so I know how hard it is.

Let me know if you need a hand... I've done so arcade ports previously.
mcgeezer is online now  
Old 14 November 2019, 16:27   #11
roondar
Registered User

 
Join Date: Jul 2015
Location: The Netherlands
Posts: 1,374
Quote:
Originally Posted by agermose View Post
Yes that would be an option, if only the main plane had propellers, but all the enemies do as well. So this is not possible.
Just a thought... You could perhaps opt for having each enemy consist of two bobs: one main and one propeller. That way you'd only need to store a few different propellers for all enemies combined.

Does mean Blitting twice per enemy though, which increases overhead.
roondar is offline  
Old 14 November 2019, 16:36   #12
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Quote:
Originally Posted by roondar View Post
Just a thought... You could perhaps opt for having each enemy consist of two bobs: one main and one propeller. That way you'd only need to store a few different propellers for all enemies combined.

Does mean Blitting twice per enemy though, which increases overhead.
Yes I also thought of that, but propellers can be tilted when enemies are turning.

I'm OK with spending 2 colours on this, and colour cycling it.
agermose is offline  
Old 14 November 2019, 16:43   #13
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Quote:
Originally Posted by mcgeezer View Post
Super great project, nice that you have the vertical scrolling code working. I'm currently working on my 8 way now so I know how hard it is.

Let me know if you need a hand... I've done so arcade ports previously.
Thanks Mcgeezer. I have seen, and admired, your Rygar and Bomb jack projects, and they are one of the reasons, I decided to go ahead, and post my project here.
I'm sure I will bump into some problems, where assistance will come in handy.

Looking forward to your 8 way scrolling project. Are you using "barrel scrolling" to do the 8 way?
While thinking about what to work on I was contemplating doing a 8-way Amiga Paradroid, since good ol' Andrew hadn't found out how to do the barrel scroller, when he made Amiga Paradroid. He got it right for Fire and Ice though
agermose is offline  
Old 14 November 2019, 16:57   #14
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,507
Quote:
Originally Posted by agermose View Post
Thanks Mcgeezer. I have seen, and admired, your Rygar and Bomb jack projects, and they are one of the reasons, I decided to go ahead, and post my project here.
I'm sure I will bump into some problems, where assistance will come in handy.

Looking forward to your 8 way scrolling project. Are you using "barrel scrolling" to do the 8 way?
While thinking about what to work on I was contemplating doing a 8-way Amiga Paradroid, since good ol' Andrew hadn't found out how to do the barrel scroller, when he made Amiga Paradroid. He got it right for Fire and Ice though
Great! It was always my intention to inspire/motivate others into more conversions.

Yeah, I'm using a copper video split, as you've rightly pointed out - when the bob's need to cross the split you need to split them in two and it's tricky.

Once done though it will be a good engine.
mcgeezer is online now  
Old 14 November 2019, 17:26   #15
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
On a sidenote this was my last project, way back in 1993.
http://hol.abime.net/6215
agermose is offline  
Old 14 November 2019, 18:12   #16
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 43
Posts: 15,654
Quote:
Originally Posted by agermose View Post
On a sidenote this was my last project, way back in 1993.
http://hol.abime.net/6215
Ah very nice
DamienD is online now  
Old 24 November 2019, 15:51   #17
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
It's been a quiet week due to workload at my dayjob.

Nighshift has joined the project :-)
Timeline is 6 months, let's see how it goes.

I grabbed the sprites gfx from MAME, and analysed the colours used, then settled the palette.
There are 16 colours for backgrounds and 16 colours for sprites including the propellers.

The grid lines have to be removed first, then recompositing of the bigger sprites, player plane looping etc.
Then conversion to iff/raw.
Last the colours have to be remapped for the Amiga palette. This part has caused some headaches, but some help may be coming my way :-)
Attached Thumbnails
Click image for larger version

Name:	MAME_sprites_player.png
Views:	182
Size:	46.1 KB
ID:	65295  

Last edited by agermose; 24 November 2019 at 17:33.
agermose is offline  
Old 24 November 2019, 17:12   #18
Ami
Registered User

 
Join Date: Sep 2014
Location: Poland
Posts: 76
Awesome project, keep it up.
Ami is offline  
Old 24 November 2019, 17:56   #19
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,507
Here you go agermose....

[ Show youtube player ]
mcgeezer is online now  
Old 24 November 2019, 23:59   #20
agermose
Registered User

 
Join Date: Nov 2019
Location: Odense / Denmark
Posts: 24
Quote:
Originally Posted by mcgeezer View Post
Here you go agermose....

[ Show youtube player ]
Thanks mcgeezer. You’re the man.
agermose is offline  
 


Currently Active Users Viewing This Thread: 4 (0 members and 4 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
1942 monitor mabus MarketPlace 4 20 March 2009 21:27
Schematic diagram of an Amiga 1942 or Amiga 1940 monitor Vaclav support.Hardware 0 18 May 2006 06:18
Any good 1942 conversions? Maverick Retrogaming General Discussion 9 04 September 2005 01:40
Looking for Battlehawks 1942 micktheodor request.Old Rare Games 1 03 September 2004 13:20

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:25.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.09437 seconds with 16 queries