English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 10 March 2020, 12:10   #121
britelite
Registered User
 
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 669
Quote:
Originally Posted by robinsonb5 View Post
Now I'm wondering about drawing vector-based stick-man fighters in realtime!
With some additional visual effects a stickman fighting game could be awesome
britelite is offline  
Old 10 March 2020, 16:24   #122
skan
Registered User

skan's Avatar
 
Join Date: Sep 2007
Location: Carnorum Regio
Age: 44
Posts: 213
Quote:
Originally Posted by britelite View Post
With some additional visual effects a stickman fighting game could be awesome
Hell yeah!
skan is offline  
Old 10 March 2020, 17:36   #123
AmigaHope
Registered User
 
Join Date: Sep 2006
Location: New Sandusky
Posts: 547
Quote:
Originally Posted by LongLifeA1200 View Post


A Japanese style RPG? That sounds like a much more interesting project to do than an arcade-perfect port.
SNK kind of did it with their Samurai Spirits RPG. ("Samurai Shodown" in the west, though the RPG never got released outside of Japan.)

...with regards to complexity of SF2's damage model. There's a reason they were able to get it so so fast on a mere CPS1 68000. Each frame of data is classified into "hitboxes" and "hurtboxes". The code does not look for hitbox collisions, only hitbox/hurtbox collisions. Hitbox == damage-dealing part, Hurtbox == vulnerable part. This simplifies the math a lot as each fighter only has one hitbox in any given attack (plus any projectiles onscreen at the time which have their own hitboxes). Character spacing is handled separately which is why characters seem to bump together at distance rather than physical intersection of their sprites.

So if an enemy has only 3 hurtboxes on a given frame than only three comparisons needs to made against those for each hitbox generated by a character. This drastically lowers the computation time rather than calculating the interaction of all entities onscreen.

Note that hitboxes/hurtboxes have an integer priority rather than binary. Since integer comparisons are essentially free vs. binary, you can have situations where two collisions interacting can be compared to determine who (or both) take damage or a state effect.

Last edited by AmigaHope; 10 March 2020 at 17:49.
AmigaHope is offline  
Old 10 March 2020, 17:57   #124
Steril707
Tigerskunk!

Steril707's Avatar
 
Join Date: Sep 2016
Location: Amiga Island
Posts: 1,357
Quote:
Originally Posted by AmigaHope View Post
SNK kind of did it with their Samurai Spirits RPG. ("Samurai Shodown" in the west, though the RPG never got released outside of Japan.)

...with regards to complexity of SF2's damage model. There's a reason they were able to get it so so fast on a mere CPS1 68000. Each frame of data is classified into "hitboxes" and "hurtboxes". The code does not look for hitbox collisions, only hitbox/hurtbox collisions. Hitbox == damage-dealing part, Hurtbox == vulnerable part. This simplifies the math a lot as each fighter only has one hitbox in any given attack (plus any projectiles onscreen at the time which have their own hitboxes). Character spacing is handled separately which is why characters seem to bump together at distance rather than physical intersection of their sprites.

So if an enemy has only 3 hurtboxes on a given frame than only three comparisons needs to made against those for each hitbox generated by a character. This drastically lowers the computation time rather than calculating the interaction of all entities onscreen.

Note that hitboxes/hurtboxes have an integer priority rather than binary. Since integer comparisons are essentially free vs. binary, you can have situations where two collisions interacting can be compared to determine who (or both) take damage or a state effect.
Well explained!
Steril707 is online now  
Old 10 March 2020, 21:57   #125
saimon69
J.M.D - Bedroom Musician

 
Join Date: Apr 2014
Location: los angeles,ca
Posts: 1,301
As for the above,so hitboxes and hurtboxes are areas - either square (simple) or polygonal (more complex) - relative to the sprite(s) box that when intersecting generate a hit, am i right?
saimon69 is offline  
Old 10 March 2020, 22:06   #126
Retro1234
Boo

Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 4,589
This video shows you at lot of the Boxes. [ Show youtube player ]

and this site explains the different boxes - https://www.smwcentral.net/?p=viewthread&t=33039

@AmigaHope your right its only 3 checks Head, Body, and Foot and some moves can only ever hit one of them so it's not many checks.

Last edited by Retro1234; 11 March 2020 at 00:58.
Retro1234 is offline  
Old 11 March 2020, 02:05   #127
DanScott
Lemon. / Core Design

DanScott's Avatar
 
Join Date: Mar 2016
Location: Sunny Bournemouth, UK
Posts: 581
Quote:
Originally Posted by Retro1234 View Post
so it's not many checks.
even if it was 10 or 20 checks, can still be done pretty quick with optimised code
DanScott is offline  
Old 11 March 2020, 09:23   #128
Steril707
Tigerskunk!

Steril707's Avatar
 
Join Date: Sep 2016
Location: Amiga Island
Posts: 1,357
If you'd had all that data, you'd still need the AI code, though..
Steril707 is online now  
Old 11 March 2020, 09:30   #129
aros-sg
Registered User

 
Join Date: Nov 2015
Location: Italy
Posts: 44
There are Street Fighter 2 "ports"/versions for M.U.G.E.N. How good (and close to the original) are those?
aros-sg is offline  
Old 11 March 2020, 11:10   #130
Retro1234
Boo

Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 4,589
idea if A.I here https://sf2platinum.wordpress.com/20...the-ai-engine/

Boxes -Dont know how many Sprites Master484 had in his Sprite Sheets per character say 120
mapping our Boxes
120*(6 Boxes * 4 corners)=2880 Byte file

so pretty much nothing but if we're storing all Sprites in memory complete not split and in Reverse.

just trying to get an idea of Memory etc

It would be good to get a complete A.I scripts for a character to get an idea of its size and other things.

Last edited by Retro1234; 11 March 2020 at 11:35.
Retro1234 is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Super street fighter Turbo Amiga-CD32 Akuma? seiyaps5 support.Games 1 12 February 2020 04:54
Super Street Fighter 2 Turbo - The Greatest Amiga Gaming Casualty? CU_AMiGA support.Games 103 27 May 2019 18:54
Super Street Fighter 2 Amiga Cd32 GurjSagoo request.Old Rare Games 6 31 October 2009 14:13
street fighter stuntpup project.WHDLoad 5 30 August 2007 21:45
Street Fighter 2 Poster from Amiga Force Issue March 93 grape Retrogaming General Discussion 11 08 November 2005 23:25

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 12:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.07905 seconds with 15 queries