pygame is
Simple DirectMedia Layer is
Site Swing
fighter framework

fighter framework - 20110901

Leif Theden (bitcraft)



There really is no name for this thing. I would have used "pyfighter", but it was already taken. =)

Cool Stuff:

  • Attack Holds
  • Fluid controls with combos
  • Cancels (smooth transition between animations)
  • Sounds ripped from Enter the Dragon (like IK!)

Combos and special moves ==================

  LK, MK, HK, HK  => Roundhouse Kick   (hit the buttons quickly)
            J, K  => Jumping Kick      (hit any kick during the jump)
         Back, J  => Backflip
      Forward, J  => Frontflip

P1 Default keys:
A: Block*
D: P
F: (F)lip. Turn character around.
Up: Jump
Down: Crouch. (try kicking)


Attack Holds
In the original IK, attacks could be "held" on the attack frame. This is also implemented here by holding down that attack button.

Characters can be modified and animations are pretty easy to create. Open the "anim.def" files in the "fighters" folder to check it out.


some significant changes to the engine and some bug fixes.
added some comments in the code, in case you are interested.  i usually
work on this once or twice a month, so i need to keep it documented
for myself!

new stuff:

* state driver is more consistent, so game will not crash after 3 rounds
* hit boxes can be read as overlays on each frame: no hardcoding hitboxes!
* framerate locked at 40fps
* timing is more accurate and consistent
* sounds are more accurate
* moved all the game py files to a library folder
* tweaked ai and split blocking and attacking

unfortunately, a couple bugs were introduced!
a new bug is that some frames on the 2nd player are still red, when
they should be white.  not sure how it got messed up!

projectiles will not be added, that was a joke.


Home Page:


click to view original size


fighter framework - 20110901 - Sep 1, 2011
fighter framework - 20110328 - Mar 28, 2011
fighter framework - 20101030 - Sep 30, 2010
fighter framework - 20100624 - Jun 25, 2010 account Comments

If you wish to leave a comment with your account, please sign in first.

April 5, 2011 2:47am - Leif Theden - nickname: (bitcraft)
Thanks! Glad you liked it. Now to add hadokens!
March 31, 2011 5:38pm - Johannes Charra - nickname: (jcharra) - 5/5
Well done - I like it a lot (loved the original, too, of course). Code looks very good & readable, the way it should be. :)
March 28, 2011 10:43am - Leif Theden - nickname: (bitcraft)
I would thank you if you actually gave me credit for the game. Before you start packaging things up and distributing them on your website, why don't you consider giving credit where it is due.
March 17, 2011 5:43pm - Zachariah Callaway - nickname: (xzcallaway)
A .deb package of fighter framework is available for download at
September 30, 2010 10:51pm - Leif Theden - nickname: (bitcraft)
actually, what you get is 2x'd now. right now, everything is blit'd to a buffer, then it is scaled before blit'd to the screen. i think this is better that scaling everything individually.
September 30, 2010 5:11pm - RB[0] - nickname: (roebros)
It's very simple, simply render everything to a buffer surface that is the reg size.
Then scale resize that surface and blit it to the screen, which is 2x the height you have.
Or simply increase the size of all your images/placement...
June 23, 2010 8:42am - Xandar Kablandar - nickname: (eternalcheesecake)
Fighting games aren't my thing, but this looks like old Apple II graphics, which I have a soft spot for.
June 21, 2010 1:53pm - Leif Theden - nickname: (bitcraft)
fixed the profanity issue, also some minor things with button input.
June 21, 2010 1:34pm - Leif Theden - nickname: (bitcraft)
hahaha, alright, code "cleanup" for today. actually, i don't have a good way of scaling up the graphics. i wish i could just have pygame automatically "2x" everything, but i'm not sure where to start.
June 21, 2010 9:00am - Christopher Smith - nickname: (maximinus)
I'm old enough to remember the original!
So far so good, obviously it's early days so I don't feel I can give a start rating yet.
Biggest issue I have is the resolution; yours must be the only screenshot that is actually scaled up!
Also, there's no need to swear in the code comments - really ;-)
June 21, 2010 6:58am - Max Power - nickname: (paolo)
Belive me when i say i wanted to do a IK/IK+ clone not long ago. I will give it a try a soon as possible.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)