LoginSignup
0
0

plunkerでtateno その2

Posted at

概要

plunkerでtatenoやってみた。
走る人、やってみた。

写真

image.png

サンプルコード


game = new Game();
game.fps(10);
game.start();
var foo = new Sprite(85, 102, "lib/hito.png", 6, 5);
foo.x(20);
foo.y(130);
foo.frame(10);
foo.enterframe = function() {
  foo.frame(foo.frame() + 1);
  if (foo.frame() > 29) 
    foo.frame(0);
  foo.x(foo.x() + 1);
};




成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0