Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ippa committed Sep 28, 2013
1 parent 38060db commit 80ca490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/example11.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script src="../jaws-dynamic.js"></script>
<link type="text/css" rel="stylesheet" href="style.css" />
<title>Jaws Example #1 - Sprite(), pressed(), basic game loop</title>
<title>Jaws Example #11 - Sprite(), pressed(), basic game loop</title>
</head>
<body>

Expand All @@ -29,9 +29,9 @@ <h1>jaws.gfx.retroScaleImage() and Literal Notion game state</h1>
fps = document.getElementById("fps")
info_tag = document.getElementsByTagName('info')

var prescaled_image = jaws.gfx.retroScaleImage( jaws.assets.get("plane.png"), 3)
var prescaled_image = jaws.retroScaleImage( jaws.assets.get("plane.png"), 3)
player = jaws.Sprite({image: prescaled_image, x: 50, y:50, anchor: "center"}) // jaws.Sprite also works without 'new'
jaws.preventDefaultKeys(["up", "down", "left", "right", "space"])
jaws.preventDefaultKeys("up", "down", "left", "right", "space")
},

update: function() {
Expand Down

0 comments on commit 80ca490

Please sign in to comment.