【文件属性】:
文件名称:代数:Type用Typescript编写的简单2D游戏引擎
文件大小:96KB
文件格式:ZIP
更新时间:2021-02-04 09:33:27
typescript game-engine GameengineTypeScript
代数
场景->实体->用Typescript编写的基于组件的游戏引擎。
仅为个人目的而创建和使用,使用后果自负。
目前没有可用的文档。
用法
玩家控制的基本实体示例:
文件结构:
.
+-- index.ts
+-- entities
| +-- Player.ts
+-- components
+-- PlayerController.ts
创建一个PlayerController组件来管理玩家的输入:
// components/PlayerController.ts
import { Component , InputManager , Key , Cursor ,
【文件预览】:
alge-master
----.gitignore(459B)
----tsconfig.json(165B)
----README.md(3KB)
----rollup.config.js(1KB)
----LICENSE(1KB)
----package.json(864B)
----dist()
--------components()
--------scenes()
--------alge.umd.js(94KB)
--------entities()
--------utilities()
--------alge.d.ts(2KB)
--------alge.module.js(90KB)
--------managers()
--------alge.js(91KB)
--------core()
----src()
--------components()
--------scenes()
--------entities()
--------utilities()
--------managers()
--------index.ts(2KB)
--------core()