Skip to content

Latest commit

 

History

History
68 lines (34 loc) · 1.06 KB

README.md

File metadata and controls

68 lines (34 loc) · 1.06 KB

npm

Goal

Make the amazing tiny, cute and friendly Ga HTML5 game engine compliant with typescript

Getting Started

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>

Examples

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

Tutorials

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