Forked from: FumioNonaka's EaselJS 0.8.0 and Box2D: Falling Balls View Diff (11)

EaselJS 0.8.2 and Box2D: Falling Balls

FumioNonaka

License: MIT License

Fork
1
Fav
0
View
728
  • Play

Fullscreen

Smart Phone

Fork tree

  • Readme
  • JavaScript 170 lines
  • HTML 15 lines
  • CSS 14 lines

gihyo.jp連載「HTML5のCanvasでつくるダイナミックな表現―CreateJSを使う」
第30回「Box2Dでたくさんのボールを床に落とし続ける
コード3「Box2Dのクラスをひとつのオブジェクトのプロパティに定めた
[HTML]の10行目で変数createjsにオブジェクトを与えないと、なぜか動かない。
[追記] 空のscript要素だけでも動いた。名前空間の問題のよう。


Free-falling balls on a floor with the CreateJS and the Box2D physics engine. This is a physics simulation of many rigid bodies in 2D space.

*An object should be assigned to the variable createjs in the HTML tab (line #10), or this code will not run. I do not know why.
*Just a script element should be needed, without a JavaScript code.

  • EaselJS 0.8.2 and Box2D: Falling Balls
  • EaselJS 0.8.2 and Box2D: Falling Balls

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags

Forked

sort by