Code Monkey home page Code Monkey logo

idle-music's Introduction

screw your expectations

ko-fi

idle-music's People

Contributors

meltedhugo avatar

Watchers

 avatar

idle-music's Issues

Populate game object with missing items if new items have been added.

"items.js" is a template for a new game. It contains all default values for existing things.
During development, many new things will be added.
Currently, a version check is done via the variable game.version. If the locally saved variable doesn't match the corresponding variable in "items.js", then the template is loaded.

It would be better if we could just populate the game object with all missing elements before it's used as the game variable, and leave all already used elements untouched.

Ability to save the progress

Will have to resort to local storage in the beginning, but I'll try to figure out how cloud saving works on Kongregate.

gainPerSec should add up so that several items can generate one single target item

This refers to the function GainAuto() in game.js
Currently, gainPerSec is calculated by generator.amount*generator.power.
This gets overwritten if one item is being generated by more than one generator item.

Better solution:
A function that looks for all items that generate a specific target item. Then perform (generator_a.amount*generator_a.power) + (generator_b.amount*generator_b.power) + (generator_c.amount*generator_c.power) + .... Use the resulting value for the target item's gainPerSec.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.