Giter VIP home page Giter VIP logo

apocodelypse's People

Watchers

 avatar  avatar

apocodelypse's Issues

Create code command

Player uses code command to create, rename, load, and list snippets for the code editor. Probably needs accompanying service to store all this info. Code editor should autosave snippets as you type so player doesn't have to worry about that.

Tutorial

May need to create state system in appController to disable commands in tutorial mode to guide player through everything,

Create build command/system

Player uses build to spend resources to get producers/upgrades/transformers. Not sure how this will work... but probably will need some kind of library of "prices".

Build code editor directive

Needs:

  • code highlighting
  • editable div with some basic styling
  • figure out a way to get code in and out of the div

Create game loop/game clock service

Make it like an engine with a public tick() function so the controller can set up the interval, then this service processes and updates the other services.

Colored resource achievement system

Each color has an associated color(hue). A bar directive at the top of the screen shows hues horizontally, maybe initially greyed out. It talks to resourceService and gets info about what resources player has ever had, then lights up the associated hues. These are the same colors that always display when the resource is mentioned. Resources from the same group have close hues. This provides an achievement system for the player to try to obtain every resource.

Create transformer system

Transformers are top-level functions in the code editor. The player needs "permission" to use them, meaning they need to be unlocked in the game somehow. They take in resources and turn them into some other resources based on their definition. This might require a little thought to get a system that is easy enough to use by the player and also does what it's supposed to and is easy to define moving forward.

Create logProcessorService

Takes an array of line objects via the .process() method (generated from a command) and returns a formatted string ready to add to the console output window.

Line object:

  • content -- string of text for this line (or array of strings?)
  • transforms -- function(?) or array of functions that takes content property and transforms it. can be chained by listing transforms one after the other, but must finish with array with single string ready for display. Examples:
    • justify -- takes array[2] and returns one string with spaces padded between to fill the line
    • indent-x -- takes a string and indents by x tabs (could use factory e.g. indentN(n) returns a transform function); probably just wrap in <span class="indent-1"> and use scss to generate a bunch of intent-n classes with margin-left set.
    • header -- takes a string and returns three lines, the first and third being --- with same length as input, and the middle being the input string with all caps, then puts the lines together with line breaks i.e. header('test') --> '----<br>TEST<br>----'
    • class -- wraps the whole line in a <span> with the given class

Code completions in code editor

This would be awesome. Maybe transformers all start with t, so typing t shows a dropdown either inline like in Sublime Text or underneath the code editor with a list of suggestions that be arrowed through and entered to paste in.

Create labService

Needs to

  • Keep track of labs and their status (running, stopped)
  • Link labs to code snippets to run

Create market/contract system

Doesn't need to be fancy, maybe just list of predesigned contracts with trigger conditions. Needs command to list/sort available contracts as well as fill a contract.

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.