English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 28 September 2017, 16:55   #1
Brick Nash
Registered User

Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 192
Double Dragon Amos file download link

Ok folks, as promised here's the download file for Double Dragon Amos and all its banks. I was going to post it in the other thread but I figured only the coder types would be interested. I can delete and move to the other thread if it's more convenient.

Obviously you'll need to set the paths to the banks yourself in the code but it should work fine. If you want the enemy to follow you around just uncheck the WILLIAMSWALK procedure call.

I've found it works ok on these minimum settings:

A1200 Non expanded quickstart
68020 (Approx. A500/A1200 or Cycle Exact)
OCS
2MBChip.

It does run on the old A500 settings but it's just really slow. Might be faster when compiled mind you.

Anyway, enjoy trawling through my inefficient, messy and probably overly long code. Bear in mind it's still a work in progress and a lot of fat will probably get cut further down the line.

I'm going down to the pub because I've been spending too much time at the computer lately haha!

Thanks. Download link and a list of know bugs is below.

https://drive.google.com/uc?export=d...nhwb1Y4OE96UXc

KNOWN BUGS:

- Grab moves animation for enemy is glitchy sometimes
- Enemy disappears when hit sometimes
- Player can't walk off screen but he can jump off
- Player and enemy share a jump mechanism so if both are in the air both will fall at the same height and speed
- There are depth issues with the player and enemy. If the player's X (not Y) is greater than the enemy's then he will be on top of the enemy and vice versa.
- If the fire button is held down a move will just repeat instead of just firing once.
- If the flying kick right is activated by pushing right, up and fire, if fire is held and then left and up is pushed, the player will travel left but still be facing right and vice verse.
- Player can still walk in front of the healthbar icons.

Last edited by Brick Nash; 28 September 2017 at 19:59.
Brick Nash is offline  
AdSense AdSense  
Old 28 September 2017, 22:31   #2
Dan
Registered User
Dan's Avatar
 
Join Date: Nov 2004
Location: Germany
Posts: 360
Its cool.

Iv got few hints:

Amos Pro is saving the sprite/icon/sample banks with the program.
But compiled program would cause a Guru Crash. (i guess because the length of the banks has to be even/ haven't checked their size)

I have added a simple On Break procedure, erasing all banks (after the sprites/sound icon banks are loaded):

Code:
on break proc br

Procedure Br
erase all
end
End Proc
So pressing ctrl c will erase them.

As you are loading them anyway, then they do not need to be saved with the source.

And for loading the banks, use relative paths.

e.g. If you want them to be organized in folders:

Code:
Load "images/Image bank new"
Load "icons/icons"
Load "snd/Sound effects"
anyway, attached is the compiled exe and a bootable adf, if someone would like to test it.
Attached Files
File Type: zip DoubleDragonAmos-WB-Compiled.zip (352.8 KB, 24 views)

Last edited by Dan; 28 September 2017 at 23:13.
Dan is offline  
Old 28 September 2017, 23:00   #3
Amigajay
醉拳
Amigajay's Avatar
 
Join Date: Jan 2010
Location: UK
Posts: 1,564
I think u forgot to attach the files Dan!?
Amigajay is offline  
Old 28 September 2017, 23:02   #4
Dan
Registered User
Dan's Avatar
 
Join Date: Nov 2004
Location: Germany
Posts: 360
Nope, iv just tested the bootable adf, and changed the source code to load the data first, and then the Picture.

edit:
But somehow, the loading text is still not being displayed ...
its ok now ...

So here it is ^^

Press esc to end the demo.

Last edited by Dan; 28 September 2017 at 23:14.
Dan is offline  
Old 28 September 2017, 23:11   #5
Brick Nash
Registered User

Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 192
Oh cool. I just tried the adf on the A500 68000 OCS setting and it actually runs to a semi-playable level when compiled. Still a bit slow mind you, but I'm surprised at the speed, even with my hack job coding skills. This could be multi platform after all!

If anyone wants to know the controls for a quick reference it's:

Fire - Punch combo

Left or right and fire - Kick combo

If facing right then down/right and fire - Elbow to left (and vice versa)

Up/right and fire - Right flying kick (and vice versa + up and fire for up flying kicking in whatever direction the player is facing)

Down and fire - hurricane kick (currently inactive)

When grabbing an enemy by walking into them when they are in the bent over position after either two punches or one kick :

Fire - knee to face

If facing right, then left and fire - Shoulder throw (and vice versa)

Down and fire - elbow head smash

Last edited by Brick Nash; 28 September 2017 at 23:21.
Brick Nash is offline  
Old 28 September 2017, 23:15   #6
Amigajay
醉拳
Amigajay's Avatar
 
Join Date: Jan 2010
Location: UK
Posts: 1,564
Great job, cheers guys!
And Nash never mind your skills, at least you are trying to get something and that's cool with a lot of us, and your skills will only improve with time.
Amigajay is offline  
Old 28 September 2017, 23:24   #7
Brick Nash
Registered User

Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 192
Quote:
Originally Posted by Amigajay View Post
Great job, cheers guys!
And Nash never mind your skills, at least you are trying to get something and that's cool with a lot of us, and your skills will only improve with time.
Cheers dude. I'm actually super encouraged with the way it runs on the A500 settings. Maybe with a few tweaks it could run to a really playable level for all the Amiga platforms.
Brick Nash is offline  
Old 28 September 2017, 23:32   #8
Dan
Registered User
Dan's Avatar
 
Join Date: Nov 2004
Location: Germany
Posts: 360
It runs Great.

If you like to speed up things a bit, then there is a way, but do not ask me, i left amos before i could get into the advanced techniques.

There is a way,which is described in the amos pro examples, to manually update the bobs, but for that you need to draw them double times ...

And Amos is using automatic way of updating the screen, to reduce the flickering, but this is, as well slower as it could be.

Of course, as you are using EHB mode, lowering the colors to 32 would speed the things up a bit (a tiny bit) ...

The more colors are used on screen, the slower would it be, that's how it worked back then.

Anyway, great work.
Dan is offline  
Old 28 September 2017, 23:34   #9
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 942
Send a message via Yahoo to Samurai_Crow
AMAL scripting could help but it has glitches.

Sent from my Prism II using Tapatalk
Samurai_Crow is offline  
Old 28 September 2017, 23:37   #10
Brick Nash
Registered User

Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 192
Quote:
Originally Posted by Dan View Post
It runs Great.

If you like to speed up things a bit, then there is a way, but do not ask me, i left amos before i could get into the advanced techniques.

There is a way,which is described in the amos pro examples, to manually update the bobs, but for that you need to draw them double times ...

Of course, as you are using EHB mode, lowering the colors to 32 would speed the things up a bit (a tiny bit) ...

The more colors are used on screen, the slower would it be, that's how it worked back then.

Anyway, great work.
Thank you!

I'm just using the bog standard Amos pro right now, but I heard the Powerbobs extension could speed things up a bit when it comes to drawing them on the screen. I'll need to check out the examples you mentioned too and see if I can maybe use that technique in conjunction with other things.

And thanks for compiling and converting to the adf. It's great to actually see how it runs properly!
Brick Nash is offline  
Old 29 September 2017, 00:09   #11
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 942
Send a message via Yahoo to Samurai_Crow
PowerBobs will help on the '020+ only but what might help more is learning to do AMAL scripts. Once initialized, they run faster than compiled AmosPro mainline source text. The only thing is that every frame of animation they try to restart at the beginning of the script so you have to use a state variable to remember from one frame to the next what position you were in previously.
Samurai_Crow is offline  
Old 29 September 2017, 00:20   #12
Brick Nash
Registered User

Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 192
Quote:
Originally Posted by Samurai_Crow View Post
PowerBobs will help on the '020+ only but what might help more is learning to do AMAL scripts. Once initialized, they run faster than compiled AmosPro mainline source text. The only thing is that every frame of animation they try to restart at the beginning of the script so you have to use a state variable to remember from one frame to the next what position you were in previously.

I never had much luck with AMAL. Because it ran independently of the main program it wouldn't (as far as I could tell) recognise code for X/Y movement in the main program. At least, that was back then when I was just starting out.

To be fair, I should really re-code all my animation parts with the built in things like AMAL as it would be faster, but I just had it in my head that I had to do it all myself with the basic code using timers. It's probably more flexible with AMAL in regard to holding on certain frames for a desired time for a more swish effect. Something which I didn't manage to do by myself, but I had planned for the game.
Brick Nash is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rodland + Double Dragon 3 together? MethodGit Amiga scene 3 23 March 2016 20:04
Double Dragon Bug ? bbsteal support.Games 6 04 July 2011 00:07
Double Dragon 2 The Master project.WHDLoad 2 04 June 2006 20:20
Double Dragon 2 HD-Install Konrad support.Games 3 09 October 2002 00:04

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 11:14.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Page generated in 0.26905 seconds with 13 queries