Skip to content

Commit 5359924

Browse files
author
Daniel
committed
Added MyArcadePlugin logos for promotional use to the assets/images folder
1 parent dc49e5b commit 5359924

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ Score and achievement API to allow HTML5 game developers to submit scores, medal
33

44
This API will allow site owners to collect scores, generate leader boards and run contests. Additionally, it will help game developers to promote their games and make them more popular.
55

6-
# How to use MyArcadeScoreBridge in your HTML5 / JS games?
6+
## How to use MyArcadeScoreBridge in your HTML5 / JS games?
77

88
There are only two simple steps to follow in order to make your game score and leader board ready.
99

10-
## Step 1
10+
### Step 1
1111
Import 'myarcadebridge.js' into your game. You can do this in two ways:
1212

13-
### Option 1
13+
#### Option 1
1414
Import the JavaScript file directly in your index.html.
1515

1616
```javascript
1717
<script src="myarcadebridge.js"></script>
1818
```
1919

20-
### Option 2
20+
#### Option 2
2121
Additionally, you could load the file dynamically.
2222

2323
```javascript
@@ -27,10 +27,10 @@ js.src = 'myarcadebridge.js';
2727
document.body.appendChild(js);
2828
```
2929

30-
## Step 2
30+
### Step 2
3131
Now, you are ready to submit scores and achievements to user sites. The bridge offers you the functions `myarcade_submit_score` and `myarcade_submit_achievement`.
3232

33-
### Submitting scores
33+
#### Submitting scores
3434
Many games submit achieved scores on game over but some of them offer a button to submit scores. You can use any method you like in your game. Just make sure that the scores are submitted only once.
3535

3636
To submit scores just call `myarcade_submit_score` and pass the achieved score to the function.
@@ -39,7 +39,7 @@ To submit scores just call `myarcade_submit_score` and pass the achieved score t
3939
myarcade_submit_score( score );
4040
```
4141

42-
### Submitting medals or achievements
42+
#### Submitting medals or achievements
4343
In some games users are able to gain medals or achievements while playing. With MyArcadeScoreBridge you can submit achievements at any during the game play. Therefor use the function `myarcade_submit_achievement`.
4444

4545
In order to submit a medal or achievement you will need to create an achievement object. The object should contain following fields:
@@ -49,7 +49,7 @@ In order to submit a medal or achievement you will need to create an achievement
4949
* **score:** Score associated with this achievement
5050
* **icon:** An URL to a badge, trophy for this achievement
5151

52-
#### Example
52+
##### Example
5353

5454
```javascript
5555
var achievement = {
@@ -60,4 +60,8 @@ var achievement = {
6060
};
6161

6262
myarcade_submit_achievement( achievement );
63-
```
63+
```
64+
65+
## How to tell users that your game is compatible with MyArcadePlugin?
66+
67+
In the assets/images folder, you'll find two MyArcadePlugin logos which you can embed in your games.

assets/images/MyArcadePlugin_dark.png

4.68 KB
Loading
4.47 KB
Loading

changelog.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1.0.0 - 2019-10-12
2+
* Initial releases

0 commit comments

Comments
 (0)