Crafty チュートリアルを読んでいて、ドキュメントが見つからないコード スニペットを見つけました。句読点を探すのはとても難しいです。
問題の行 11 と 12 は、行に続き、とCrafty.e
で始まります。これらのプロパティはどのオブジェクトに属していますか?.text
.css
//the loading screen that will display while our assets load
Crafty.scene("loading", function () {
//load takes an array of assets and a callback when complete
Crafty.load(["sprite.png"], function () {
Crafty.scene("main"); //when everything is loaded, run the main scene
});
//black background with some loading text
Crafty.background("#000");
Crafty.e("2D, DOM, Text").attr({ w: 100, h: 20, x: 150, y: 120 })
.text("Loading")
.css({ "text-align": "center" });
});
//automatically play the loading scene
Crafty.scene("loading");
これは仕様のどこに記載されますか?