GithubHelp home page GithubHelp logo

dr-rustario's Introduction

Dr. Rustario

Dr. Mario clone written in SDL2 and Rust for fun.

Building

Requires vcpkg to build.

cargo install cargo-vcpkg
cargo vcpkg build
cargo build --release

All resources are embedded into the binary.

macOS

The linker will fail to link SDL2 haptics. You will need to add the following to ~/.cargo/config.toml:

[target.aarch64-apple-darwin]
rustflags = ["-C", "link-args=-weak_framework CoreHaptics"]

Retro handhelds

I have built this successfully for ArkOS on the Anberic rg353m. For this we need an ancient linux distro having glibc <2.30 but a fairly new SDL2 build. It can be cross compiled in Docker with script:

./build-aarch64-cross.sh

Config

Config is stored in yaml:

  • Windows: $HOME\AppData\Roaming\dr-rustario
  • MacOS: $HOME/Library/Application Support/dr-rustario
  • Linux: $XDG_CONFIG_HOME/dr-rustario or $HOME/.config/dr-rustario

Most of it you can ignore except:

Video Mode

  • Window (default) - note if your screen is not at least 720p then rustris may not even load on first attempt.
    video:
      mode: !Window
        width: 1280
        height: 720
  • FullScreen - native fullscreen (recommended), note rustris should scale to any weird resolution but was designed for 1080p & 4k.
    video:
      mode: !FullScreen
        width: 1920
        height: 1080
  • FullScreenDesktop - fullscreen in windowed mode
    video:
      mode: !FullScreenDesktop

Controls

Only keyboard controls are supported (I play this on a custom arcade cabinet with a programmable keyboard encoder).

input:
  menu:
    up: Up
    down: Down
    left: Left
    right: Right
    select: X
    start: Return
  player1:
    move_left: Left
    move_right: Right
    soft_drop: Down
    hard_drop: Up
    rotate_clockwise: X
    rotate_anticlockwise: Z
    hold: LShift
  player2: ~
  pause: F1
  next_theme: F2
  quit: Escape

All key names are defined in src/config.rs.

There are no default player 2 controls.

dr-rustario's People

Contributors

axle-h avatar

Watchers

 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.