Last active
October 21, 2015 16:30
-
-
Save tadamatu/7f4b2f2e1fc7349e4c5e to your computer and use it in GitHub Desktop.
【cocos2d-x】物理エンジンの重力を変更したらモンストも作れるぞ! ref: http://qiita.com/tadamatu/items/df7e9ad060462936fcde
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 固定された物体(壁などに利用) | |
auto map = this->addNewBoxAtPosition(this, Point(0, 100), false, "map.png"); | |
// 物理計算されてダイナミックに動く物体(プレイヤーなどに利用) | |
auto player = this->addNewBoxAtPosition(this, Point(100, 100), true, "player.png"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment