New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

libclicker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libclicker

JS library for clicker games

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
1
Created
Source

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>
<!-- or -->
<script src="https://unpkg.com/libclicker/dist/libclicker.min.js"></script>

Initialize

Usage

let world = new World();
world.update(1.0 / 60.0);

// Creates a new currency called "Gold"
let gold = new Currency.Builder(world)
    .name("Gold")
    .build();

let goldMine = new Creator.Builder(world)
    .generate(gold)   // Generate gold
    .baseAmount(10)   // Defaults to 10 gold per tick
    .multiplier(1.15) // Increase amount by 15 % per level
    .price(100)       // Price of level 1 gold mine
    .priceMultiplier(1.25) // Increase price by 25 % per level
    .build();

// Advance the world by 30 seconds to make the automator work
world.update(30.0);

Roadmap

  • Documentation [X]
  • Example Game []
  • BigInt support []

Credits

A javascript port based on the good libclicker2 by @manabreak

Keywords

games

FAQs

Package last updated on 15 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts