Libclicker
JS library for clicker games
This javascript library helps to build clicker/idle/incremental games providing a set of building pieces usually found on these kind of games.
If you dont know the genre and want to try one, please visit this complete list
To support all the math and balance decisions in your development this article is pretty useful
Install
CDN
Link directly to Masonry files on unpkg.
<script src="https://unpkg.com/libclicker/dist/libclicker.js"></script>
<script src="https://unpkg.com/libclicker/dist/libclicker.min.js"></script>
Initialize
Usage
let world = new World();
world.update(1.0 / 60.0);
let gold = new Currency.Builder(world)
.name("Gold")
.build();
let goldMine = new Creator.Builder(world)
.generate(gold)
.baseAmount(10)
.multiplier(1.15)
.price(100)
.priceMultiplier(1.25)
.build();
world.update(30.0);
Roadmap
- Documentation [X]
- Example Game []
- BigInt support []
Credits
A javascript port based on the good libclicker2 by @manabreak