Make the amazing tiny, cute and friendly Ga HTML5 game engine compliant with typescript
install package
npm i kka-ga
import types in your typescript source
/// <reference types="kka-ga" />
import ga javascript assets directly in your HTML
<!doctype html>
<meta charset = "utf-8">
<title>MY GAME</title>
<body>
<script src="node_modules/kka-ga/src/ga.js" ></script>
<script src="node_modules/kka-ga/src/plugins.js" ></script>
</body>
In the Examples folder there are a lot of typescript samples useful to better understand the Ga features. To start them execute the following command in your shell:
npx parcel serve ./examples/index.html --open
In the Tutorials folder there are the original ones translated into typescript To start them execute the following command in your shell:
npx parcel serve ./tutorials/index.html --open