Coder Social home page Coder Social logo

crogue's Introduction

Crogue

Crogue is a tiny roguelike written in Crystal, mostly as a learning experience. The player @ advances through a series of levels, avoiding goblins X, finding the key k to open the gate # to the next level.

Screenshot

Installation

Using Crystal, run crystal run src/crogue.cr in the root of this repo. Alternatively, run the crogue-game binary I've checked into the bin folder (e.g. ./bin/crogue-game). You must run it from the root of this repo, or some other place where the maps folder is available.

Since it's Crystal, it probably won't work on Windows. The binary will work on OSX.

Editing and writing your own levels

Levels are read in from a folder of text files with the extension .map. The rule for constructing levels is very simple: use . to represent a walkable tile, and the characters @, X, k, O (impassable pillars) and # to represent everything else. Maps need not be rectangular: as the example levels show, empty spaces are treated as impassable space.

crogue's People

Contributors

seangoedecke avatar

Stargazers

 avatar Georgi Bojinov avatar Montana Flynn avatar Okan Binli avatar Jack avatar

Watchers

James Cloos avatar  avatar

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.