Coder Social home page Coder Social logo

lets-make-salad's Introduction

Let's Make Salad!

This was a short-lived project in which I started creating a game written in Golang with raylib. The game / demo procedurally generates a map (based on a seed), and then beings and items get randly added to it. You can zoom around the map, or make it full screen.

The original idea was to make a peaceful and relaxing colony simulator in which all of the food is vegan.

A low resolution map of a forested and rocky land. Several people appear on the map.

How to run the demo / game

git clone https://github.com/leaf-node/lest-make-salad
cd lets-make-salad

go run .

or with a seed string of your choosing:

go run . any-seed-string

The raylib depdendency comes with C code, so it may take a few minutes to compile the very first time.

Controls

f for full screen, m for maximized window, arrow keys for moving the view of the map, + to zoom in, - to zoom out, esc to quit

About the code

The map is created by multiplying two different freqencies of two-dimensional OpenSimplex noise together. Land features are determined by the height / amplituide of each square.

License

This software is under the MIT license. The images are under the Creative Commons CC0 license, or the MIT license, whichever you prefer to use.

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.