About
Contents
STL
Android
Eigen
enchant.js
Firefox OS
OpenGL
OpenGL ES 2.0
pukiwiki
UE4
Unity
Windows Phone
Xamarin
Materials Link
その他
PR
STL
Android
Eigen
enchant.js
Firefox OS
OpenGL
OpenGL ES 2.0
pukiwiki
UE4
Unity
Windows Phone
Xamarin
スプライトを表示します。
// main.js function preloadAssets() { game = new Game(320,480); game.onload = init; game.start(); } function init() { game.scale = 1; game.fps = 30; scene = new Scene(); scene.backgroundColor = "#000"; game.pushScene(scene); sprite = new Sprite(64, 64); sprite.backgroundColor = "#66F"; sprite.x = 32; sprite.y = 32; scene.addChild(sprite); main(); }