phaser-mario:相位器的类Mario类

时间:2021-02-03 12:02:52
【文件属性】:
文件名称:phaser-mario:相位器的类Mario类
文件大小:3KB
文件格式:ZIP
更新时间:2021-02-03 12:02:52
mario games html5 phaser PhaserJavaScript 什么 这是。 “ mario”是玩家控制的角色,可以在X轴上移动并在Y轴上跳跃。 它受重力影响,具有一定的健康状况,并使用WASD /箭头键和空格键移动。 怎么样 npm install phaser-mario 然后,在您的Phaser源代码中 import Mario from 'phaser-mario' // in your game creation method: this . game . physics . startSystem ( Phaser . Physics . ARCADE ) this . game . physics . arcade . gravity . y = 500 // add a controllable (arrow keys/space bar) Mario-like player character const mario = this . game . add . existing ( new Mario ( { game : this . game , key : 'your-sprite-key' ,
【文件预览】:
phaser-mario-master
----README.md(3KB)
----package.json(525B)
----index.js(3KB)

网友评论