Skip to content

Commit f901aa3

Browse files
committed
Readme tweaks
1 parent 0f10b59 commit f901aa3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ The entire customization for this library is done through the options object tha
3939
This can be as simple as passing nothing, are as advanced as passing dozens of options.
4040

4141
```
42-
42+
var options = {};
43+
GameController.init( options );
4344
```
4445

4546
Below is a list of the possible options, and what each does.
@@ -95,8 +96,7 @@ Examples
9596
```
9697
GameController.init();
9798
```
98-
99-
**DPad on left, 2 buttons on right**
99+
![http://clay.io/images/controller/1.png](GamePad 1)
100100

101101
**Joystick on left, 1 button on right**
102102
```
@@ -120,6 +120,8 @@ GameController.init( {
120120
}
121121
} );
122122
```
123+
![http://clay.io/images/controller/2.png](GamePad 2)
124+
123125
**Joysticks on both sides**
124126
```
125127
GameController.init( {
@@ -143,6 +145,7 @@ GameController.init( {
143145
}
144146
});
145147
```
148+
![http://clay.io/images/controller/3.png](GamePad 3)
146149

147150
**Two large buttons at bottom**
148151
```
@@ -159,6 +162,7 @@ GameController.init( {
159162
right: false
160163
} );
161164
```
165+
![http://clay.io/images/controller/4.png](GamePad 4)
162166

163167
These examples are just the start - the customization allows for quite a bit to be done,
164168
and of course, the code can always be edited as well.

0 commit comments

Comments
 (0)