-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
eboatwright edited this page Mar 4, 2022
·
4 revisions
You can either clone this repository with
git clone https://github.com/eboatwright/jscii
or, you can download the version you want from Releases, and copy the jscii.js file into your project!
And, if you want more "engine-y" type stuff, copy the extras.js as well.
There is an example project in the root src directory, (main.js) and it contains basic player movement, as well as tile collisions, basic UI, lighting, and dungeon generation!
Then, if you haven't already create an index.html file in your root directory, and link the JavaScript files to it in the body tag, and in this order.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JSCII</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="main.css">
</head>
<body>
<canvas width="480" height="300" id="canvas"></canvas>
<script src="src/jscii.js"></script>
<script src="src/extras.js"></script>
<script src="src/main.js"></script> <!-- This is your game's file -->
</body>
</html>
Next: Learning the Basics