【文件属性】:
文件名称:purescript-phaser:PureScript的Phaser 3绑定
文件大小:21KB
文件格式:ZIP
更新时间:2021-03-28 05:56:26
PureScript
纯文字移相器
常见的PhaserJs 3操作的Bindingin。 由于Phaser具有非常大的API,因此无法实现所有功能。 随时打开PR或寻求新的绑定!
一些绑定允许使用更友好的FP方式处理操作,例如将Scene传递为create函数的参数,因为我们不打算使用this 。
main :: Effect Unit
main = do
game <- createGame {width: 400, height: 400}
sceneManager <- getSceneManager game
scene <-
addScene "testScene"
{ init: \_ _ -> log "init!"
, create: \scene _ -> do
img <- addImage "test" {x: 40.0,
【文件预览】:
purescript-phaser-main
----packages.dhall(3KB)
----index.html(173B)
----src()
--------Graphics()
----LICENSE(1KB)
----README.md(1014B)
----spago.dhall(199B)
----.gitignore(124B)
----index.js(20KB)