https://github.com/mrspeaker/ld43
Entry for the Ludum Dare 43 game jam, on the theme "Sacrifices must be made"
https://github.com/mrspeaker/ld43
game game-development gamedev ludum-dare ludum-dare-43 ludumdare
Last synced: about 2 months ago
JSON representation
Entry for the Ludum Dare 43 game jam, on the theme "Sacrifices must be made"
- Host: GitHub
- URL: https://github.com/mrspeaker/ld43
- Owner: mrspeaker
- Created: 2018-12-02T01:21:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T15:02:47.000Z (over 6 years ago)
- Last Synced: 2025-02-12T21:19:39.262Z (3 months ago)
- Topics: game, game-development, gamedev, ludum-dare, ludum-dare-43, ludumdare
- Language: JavaScript
- Homepage: https://mrspeaker.github.io/ld43/
- Size: 1.14 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Farm To Table
*The supramundane, numinous hamburger experience.*
[Play it](https://mrspeaker.github.io/ld43/). Or go to the [Ludum Dare #43 entry](https://ldjam.com/events/ludum-dare/43/farm-to-table) page.
The Steakholders are angry, and they expect results. They - along with the humble and hard-working citizens of Farmtotabletown - have invested their faith in You. Faith in you, as their transcendental social and economic linchpin.
It sounds easy, but the perfect burger business may require a few sacrifices.
[](https://mrspeaker.github.io/ld43/)
## FAQ
* Q. Who are the Steakholders?
* A. Now you’re asking the right questions.* Q. What is the purpose of burger?
* A. That’s like asking “What is time?”. Do you know? Because I think I may have ran out of it.## Running the code
It's plain JS: no compiling/build tools. It uses JavaScript modules to load the code, so you need a reasonably recent browser to play it.
It also needs a web server to load the images and sounds (because you can't load resources directly in your browser from `file:///` anymore. *frowny face emoji*).
Start any simple web server in the root directory and load `index.html` in your browser. For example, if you have python installed: `python3 -m http.server` (or `python -m SimpleHTTPServer` for v2) then navigate to the server's default URL (eg http://localhost:8000)
### HERE BE DRAGONS
Disclaimer: code is pretty trash. It *started* nicely, devolved quickly. Biggest issue (if you're trying to follow the game logic) is the attempted-but-failed separation between the `Game` object and the `Town` (A Phaser.Scene) object. `Game` was supposed to hold all game data/logic, and `Town` was supposed to control the visible/renderable parts. As the 48 hours ran out, this separation became messy fast: some things are linked via the `Events` event system, some things are tacked on to sprites or data objects (`peep._sprite` and `peep._data` are both hacks to make the data and ui synced).
Some things are accessed directly from Town into Game object, others triggered by events. It's a mess.