Skip to content

Commit 53d01f8

Browse files
author
Ricardo Band
committed
fixed markdown
1 parent 072206f commit 53d01f8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,28 @@ This is the coitus protocol that handles the communication between the game and
3333
Controller -> Game
3434
------------------
3535

36-
### /controller/new/<port>
36+
### /controller/new/&lt;port&gt;
3737

38-
Connect a new controller to the game. Game will answer with /uid/<uid>. This is also known as 'anpymln'.
38+
Connect a new controller to the game. Game will answer with /uid/&lt;uid&gt;. This is also known as 'anpymln'.
3939

40-
### /controller/<uid>/ping/<port>
40+
### /controller/&lt;uid&gt;/ping/&lt;port&gt;
4141

4242
Tell the game that the controller is still in use and update it's address and port. Use this once a minute or the
4343
controller will get deleted.
4444

45-
### /controller/<uid>/kthxbye
45+
### /controller/&lt;uid&gt;/kthxbye
4646

4747
Disconnect the controller properly. In theory you could just wait 60s but this is the cleaner way and most games would
4848
be very happy if you use this.
4949

50-
###/controller/<uid>/states/<states>
50+
###/controller/&lt;uid&gt;/states/&lt;states&gt;
5151

5252
Send the states of your controller keys. Always send all 14 states, even if your controller doesn't have 14 buttons.
5353
The states should be an array with 0 for key not pressed and 1 for key pressed. So if you're pressing the Up button and
5454
X the states array should look like this: 10000010000000
5555
You can lookup all possible buttons and there location in the array in pymlgame/locals.py.
5656

57-
### /controller/<uid>/text/<text>
57+
### /controller/&lt;uid&gt;/text/&lt;text&gt;
5858

5959
*Optional*
6060

@@ -65,24 +65,24 @@ without this function but you can use it if your controller is capable of text i
6565
Game -> Controller
6666
------------------
6767

68-
### /uid/<uid>
68+
### /uid/&lt;uid&gt;
6969

7070
Tell the controller its uid. This is ideally an integer.
7171

72-
### /rumble/<duration>
72+
### /rumble/&lt;duration&gt;
7373

7474
*Optional*
7575

7676
Tell the controller to rumble. Duration should be given in milliseconds. Not all controllers have the ability to rumble.
7777
Maybe they do it in an optical way.
7878

79-
### /message/<text>
79+
### /message/&lt;text&gt;
8080

8181
*Optional*
8282

8383
Send some text to the controller. Be aware that not all controllers can display text, so don't send important things.
8484

85-
### /download/<url>
85+
### /download/&lt;url&gt;
8686

8787
*Optional*
8888

@@ -91,7 +91,7 @@ file so that the player can hear some ingame sounds. Use this function everytime
9191
could have deleted the files after playing. Controllers should ensure that files already downloaded gets downloaded
9292
again to reduce loading times for games that have been played before.
9393

94-
### /play/<file>
94+
### /play/&lt;file&gt;
9595

9696
*Optional*
9797

0 commit comments

Comments
 (0)