Giter Club home page Giter Club logo

roctris's Introduction

Roctris

Roctris is a minimal clone of a popular video game, created to learn the Roc programming language.

It has only been compiled and tested with WSL2 running Ubuntu 20.04.3 LTS

Installation

  1. Download Roc and download Roctris next to Roc.
  2. Follow Roc's instructions for setting up the nix shell.
  3. navigate to the Roc folder, run nix-shell
  4. run cargo run ../roctris/Roctris.roc

Playing

  • Spacebar to start the game from the intro screen
  • Left/Right arrow keys to move
  • Up arrow key to rotate
  • Down array key to move down one space
  • Spacebar to drop to the bottom
  • Q or ctrl+c to quit

roctris's People

Contributors

ivo-balbaert avatar jared-cone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ivo-balbaert

roctris's Issues

Trying to make an updated working version

Hi Jared, awesome project!

I wanted to make the project work again in current Roc
I had to correct a lot of new errors because of this, but most where trivial (see attached code).
When trying to build, both cc and the legacy linker gave me:

roc --linker=legacy Roctris.roc
๐Ÿ”จ Rebuilding platform...
ld: platform/linux-x64.o: in function host::execute_main': /home/ivo/roc_repo/roctris/platform/src/lib.rs:82: undefined reference to roc__mainForHost_size'
ld: platform/linux-x64.o: in function host::call_the_closure': /home/ivo/roc_repo/roctris/platform/src/lib.rs:118: undefined reference to roc__mainForHost_1_Fx_result_size'
ld: /home/ivo/roc_repo/roctris/platform/src/lib.rs:122: undefined reference to roc__mainForHost_1_Fx_caller' thread 'main' panicked at 'not yet implemented: gracefully handle ld(orzig` in the case of wasm with --optimize) returning exit code Some(1)', crates/compiler/build/src/program.rs:1036:17

I didn't see a solution for this, so I tried with the latest basic-cli v0.4.0, moving some of your code to its cache, causing some more strange errors.

Do you see a way to get this working again? It would be phantastic to have this beautiful project working again. Thanks!
roctris.zip

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.