shapeshift.git
8 years agoOptimized girl SVG svg last-with-svg
MegaBrutal [Tue, 19 Apr 2016 21:19:13 +0000 (23:19 +0200)]
Optimized girl SVG

Converted the player character (girl) SVG to optimized SVG, because some
sources say that it would solve problems with Internet Explorer.

Unfortunately, it didn't help. The game still doesn't render correctly
with Internet Explorer.

I still kept the optimized SVG because it's smaller.

modified:   csaj.svg

8 years agoLinked the Ubuntu Monospace font
MegaBrutal [Mon, 18 Apr 2016 15:50:30 +0000 (17:50 +0200)]
Linked the Ubuntu Monospace font

Ubuntu Mono is installed on Ubuntu systems by default, but
non-Ubuntu computers had to fall back to a default font.

Now the Ubuntu Monospace font is uploaded and referenced in the
CSS, so browsers will download and use it to render in-game text.

modified:   index.html
modified:   shapeshift.html

8 years agoUpdate player's hitbox after shapeshifting
MegaBrutal [Mon, 18 Apr 2016 14:44:32 +0000 (14:44 +0000)]
Update player's hitbox after shapeshifting

It was a known bug that the player's hitbox didn't change
after the player shapeshifted into a new form.
Now this is fixed.

modified:   shapeshift.js

8 years agoPrevent default browser action for SPACEBAR and ARROW keys
MegaBrutal [Mon, 18 Apr 2016 13:53:34 +0000 (13:53 +0000)]
Prevent default browser action for SPACEBAR and ARROW keys

SPACEBAR scrolls the page down on some browsers, and ARROW keys
may also cause the page to scroll. Now the game prevents the
browser from performing these default actions when the game is
in focus.

Also, I removed an unused optional parameter from putText,
because Internet Explorer was complaining about it. The game
still doesn't work with IE though, because SVGs are not displayed.

modified:   shapeshift.js

8 years agoInitial commit
MegaBrutal [Mon, 18 Apr 2016 03:16:45 +0000 (03:16 +0000)]
Initial commit

Changes to be committed:
new file:   bird.svg
new file:   birdcage.svg
new file:   csaj.svg
new file:   ground.svg
new file:   guard.svg
new file:   index.html
new file:   kecskecsaj.svg
new file:   shapeshift.html
new file:   shapeshift.js