Moved JavaScript code to separate file. Changed formatting. Limited
players to not be able to leave the initial game area.
Lysy blokers zmieniony na NPC'a. Lazi sam i przepycha postacie graczy.
hop nerbisa
First punch... miss, but still
Small fix for punch - faster and sound does not jam
Renaming game.gameSize to game.size
Implemented punching.
Fixed punching to work when punching arm is fully stretched (suppose
to look more realistic ;) ).
Code reformatted with R#.
Refactoring aligned with diagram on GitHub wiki.
repaint of player2
otherDres now turns back from us after he's been hit. If he's already
turned with his back towards the attacker, it doesn't turn around
anymore after a hit (more realistic? ;)).
Added Player statistics for strength and range (also for Enemy but
doesn't work yet). Player and Enemy now have a common ancestor
(Character).
Added simple skeleton for Enemy punching. No animations or sounds yet,
but Players get knocked back after encounter with an Enemy.
Added enemy punching sound.
Refactored punch and added hitPoints stat (doesn't have any effect for
now).
LysyBlokers.png expanded to include hit frames. Lysy blokers is not
punching but headbutting.
Punching with both hands
Removing artifacts created by inheritance from Element
Added new stat for Characters: statWalkSpeed so that different
characters can walk with different speed. Also added deltaTime to
walking calculations for frame-rate-independent time.
Updated some of my comments.