-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathindex.xml
62 lines (51 loc) · 3.41 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>24a2 on 24a2 - an ultra minimalist game engine</title>
<link>http://24a2.routley.io/reference/</link>
<description>Recent content in 24a2 on 24a2 - an ultra minimalist game engine</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="http://24a2.routley.io/reference/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Color</title>
<link>http://24a2.routley.io/reference/enums/color/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://24a2.routley.io/reference/enums/color/</guid>
<description>Color is a set of constants which you can use to set the color of dots.
Use it from both TypeScript and JavaScript with:
game.setDot(x, y, Color.Red) Index Enumeration members Black Blue Gray Green Indigo Orange Red Violet Yellow Enumeration members Black • Black: = &ldquo;BLACK&rdquo;
Blue • Blue: = &ldquo;BLUE&rdquo;
Gray • Gray: = &ldquo;GRAY&rdquo;
Green • Green: = &ldquo;GREEN&rdquo;
Indigo • Indigo: = &ldquo;INDIGO&rdquo;</description>
</item>
<item>
<title>Direction</title>
<link>http://24a2.routley.io/reference/enums/direction/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://24a2.routley.io/reference/enums/direction/</guid>
<description>Index Enumeration members Down Left Right Up Enumeration members Down • Down: = &ldquo;DOWN&rdquo;
Left • Left: = &ldquo;LEFT&rdquo;
Right • Right: = &ldquo;RIGHT&rdquo;
Up • Up: = &ldquo;UP&rdquo;</description>
</item>
<item>
<title>Game</title>
<link>http://24a2.routley.io/reference/classes/game/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://24a2.routley.io/reference/classes/game/</guid>
<description>Game is the object that controls the actual running of the game. You create a new one by passing in a GameConfig. Calling game.run() will start the game.
let config = { create: create, // A function you&#39;ve defined update: update, // A function you&#39;ve defined } let game = new Game(config) game.run() Hierarchy Game Index Constructors constructor Methods end getDot getFrameCount run setDot setText Constructors constructor + new Game(config: GameConfig): Game</description>
</item>
<item>
<title>GameConfig</title>
<link>http://24a2.routley.io/reference/interfaces/gameconfig/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://24a2.routley.io/reference/interfaces/gameconfig/</guid>
<description>GameConfig is the object you pass when contructing a new Game.
Hierarchy GameConfig Index Properties clearGrid containerId create defaultDotColor frameRate gridHeight gridWidth onDotClicked onKeyPress update Properties Optional clearGrid • clearGrid? : undefined | false | true
Specifies whether 24a2 should clear the grid at the beginning of each frame. 24a2 clears the grid by setting the colour of every dot to GameConfig.defaultDotColor. Setting clearGrid to false lets you simplify the code for some games by letting 24a2 store the state for each dot.</description>
</item>
</channel>
</rss>