Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislawfortonski authored Apr 24, 2020
1 parent 423697f commit fe7f9e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ That is my old abandoned project of 2D engine. I had written it before I learned


## Usage
1. Include src files and css file. Set your .window size in CSS file.
1. Include source JS files and CSS file. Set your `.window` size in CSS file.
2. Add this snippet to your HTML file. You can use more this structure.


Expand All @@ -18,7 +18,7 @@ That is my old abandoned project of 2D engine. I had written it before I learned
</div>
```

3. Set your scale and initialize engine. You set the scale only one time before initialization. Less scale == less performance!
3. In your JS file, you have to set scale and create `SOSEngine.Scene`, `SOSEngine.Window` and `SOSEngine.Camera`. You can set the scale only one time and before initialization. Remember: less scale == less performance!
```js
SOSEngine.scale = 12;
var engine = SOSEngine.make($('#SOSEngine'));
Expand Down

0 comments on commit fe7f9e7

Please sign in to comment.