This is a simple JS graphical library intended for total beginners and students of programming to make quick small games in JavaScript without diving to deep in graphical programming (WebGL, Canvas) details.
You can install it with npm
npm install simry
or bower
bower install simryor download it from GitHub as zip archive and unarchive it.
You will also need Pixi.JS library.
The simplest example is how to draw red rectangle.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/3.0.11/pixi.min.js"></script>
<script src="simry.min.js"></script>
<script src="game.js"></script>
</head>
<body>
</body>
</html>// game.js
window.onload = function(){
init(window.innerWidth, window.innerHeight);
rectangle(100, 100, 50, 150, COLOR_RED);
};Features of Simry you can find out in this documentation.
We welcome contributions of all kind. You can fork and pull request the code or submit an issue / feature request.
Big thanks to people that have contributed to its development in git and initial development.
Copyright (c) 2016 Jānis Gruzis and other contributors
Licensed under the GPLv3 License