shuuki / emoji-story

A little game about crafting the universe using only emoji.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EMOJI STORY

Start only with some stuff, a swirl, and a spark. Then craft the world one emoji at a time. Be careful, there is a chance for destruction.


CREDITS


RULES

Your objective is to create resources using the resources that you have.

RESOURCES

There are three types of resources in the game:

  1. base resources
  • gradually fill over time
  • a little weighted randomization
  1. expendable resources
  • can be made from either base resources or permanent resources
  • sometimes require certain unlimited resources be unlocked
  1. permanent resources
  • only need to be crafted once
    • but can be crafted many times
  • special resources that require greater investment

base, tools, unlocks

three containers for base materials [?][?][?]

area to show tools show an empty gray block if something new can be crafted show at 50% opacity if it has been crafted before but you have none now show at 100% opacity if it is currently available if more than one is available, show a little badge [ ? ? ]

cycle through selection modes on click or touch

  1. temporary selection
  2. permanent selection
  3. off

JS PSEUDO SCRATCH


new resource

resource is an object {
	name: "Resource Name",
	display: ":icon_character_string:",
	size: number 0-n,
	type: either "base", "permanent", "craftable"
}

iterate over the piles of resources to make an index

inside each pile of resources,

how much is there?


what kind is it?
	base
		refills slowly over time
		roll 1d20
			1. 75% chance for wavy
			2. 20% chance for cyclone
			3. 5% chance for boom

	permanent
		unlocks once 
	expendable

what are its build requirements?





should it be displayed?
	if yes, look at "RENDER RULES"
	if no, see "can you be built now?"
		if cannot be built, do not display

has it been built before?
	if no, mark




can it be built now?


look at requirements
	for each requirement
		look at main index
			if < required, stop looking, can't be built
			if >= required, go to the next requirement and look again
				if that's the end of the requirements, yes it can be built


is it marked?



if it matches all requirements (in "look at requirements")
	and someone has toggled all the resources (see "is it marked?")
		subtract the amount of resources required from each stack
		add the given amount of new resource to its stack
			and mark the new resource as having been built



CSS


// RENDER RULES


resources may contain many items

base type
	starts at the top of page 
	has a bar that starts at the top, grows vertically downward
	convert 1*2 + "px" so 2px per amount of resource
	add to style height

goes on top, pushes down base until a point
	elements fill up with buttons in whatever order

	permanent on the right
		text left

	craftable on the left
		text right


buttons are inline, fixed height/width, reflow at will


CRAFTING

// base materials
〰️ & πŸŒ€ & πŸ’₯

// first generation

〰️ + πŸŒ€ = ❄️ πŸŒ€ + πŸ’₯ = ⚑ 〰️x10 + πŸ’₯ = πŸ”₯

// second generation

❄️ + ⚑ = πŸ’¦ or πŸ’¨ ❄️x10 + πŸŒ€ = β˜„οΈ πŸ”₯x15 + ⚑ = β˜€οΈ ❄️x20 + πŸŒ€ = β›„ ❄️x100 + πŸŒ€ = 🌚

// third generation

β˜„οΈx30 + β˜€οΈ + πŸŒ€ = [πŸŒ…] β˜€οΈx20 + πŸŒ€ = [🌌]

// πŸŒ… generation

🌚 + πŸ’¨ = [all weather] 〰️x50 + πŸ”₯x5 + ⚑ = πŸŒ‹ πŸŒ‹ + πŸŒ€x5 = :island: & [ ⛰️ & πŸŒ„ ]

  • :island:x7 + πŸŒ€ = [ 🌍 & 🌏 & 🌎 ] ⛰️ + ❄️x10 = [πŸ”οΈ] πŸ”οΈ + β›„ = :snowman2:

??? πŸŒ„ + 🌰 > 🌱 > 🌾 + πŸ”ͺ > 🍚 + βš—οΈ > 🍢

// 🌌 generation

πŸš€ + ⚑ = πŸ‘½ & πŸ‘Ύ

About

A little game about crafting the universe using only emoji.


Languages

Language:CSS 97.9%Language:HTML 2.1%