Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game 開発簡略化対応 #152

Merged
merged 2 commits into from
Apr 1, 2015
Merged

game 開発簡略化対応 #152

merged 2 commits into from
Apr 1, 2015

Conversation

phi-jp
Copy link
Owner

@phi-jp phi-jp commented Apr 1, 2015

tm.simple.js の機能をごっそりこっちに持ってきました!

example

/*
 * game setup
 * 内部で ManagerScene の生成や定数(SCREEN_WIDTHなど)を定義
 * メジャーなクラス(SpriteやLabelなど)を global に展開するなどもやる
 */
tm.game.setup({
    title: "Flash 暗算",
    query: "#world",
    width: 640,
    height: 960,
    startLabel: 'game',
    background: '#444',
});

tm.define("GameScene", {
    superClass: Scene,

    init: function() {
        this.superInit();

        // TODO: ゲーム実装
    },
});

phi-jp added a commit that referenced this pull request Apr 1, 2015
@phi-jp phi-jp merged commit 8f07e6d into develop Apr 1, 2015
@phi-jp phi-jp deleted the feature/game branch April 1, 2015 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant