therealest / apocodelypse Goto Github PK
View Code? Open in Web Editor NEWA procedurally generated resource management game played by writing code.
A procedurally generated resource management game played by writing code.
For resources/producers/upgrades.
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.
May need to create state system in appController
to disable commands in tutorial mode to guide player through everything,
Just display list of producers and upgrades.
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".
Needs:
div
with some basic stylingdiv
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.
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.
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.
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 lineindent-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 classThis 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.
Needs to
This includes:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.