Coder Social home page Coder Social logo

crank's Introduction

crank

Crank is a wrapper for cargo when creating games for the Playdate handheld gaming system. This is just a tool, the actually Rust wrappers for Playdate are found in its own repository.

This software is not sponsored or supported by Panic.

Requirements

The Playdate SDK installed in $HOME/Developer/PlaydateSDK.

Rust, easiest installed via rustup

Rust toolchain nightly needed for the unstable aloc feature, installed with rustup install nightly.

If you want want to build for the Playdate device, you will need the thumbv7em-none-eabihf target. Added with rustup +nightly target add thumbv7em-none-eabihf

All of the requirements listed in Inside Playdate with C.

Installation

Since crank is not yet on crates.io, one needs to download it with git and install it with cargo.

cargo install --git=https://github.com/pd-rs/crank

After that one should be able to run crank

crankstart $ crank build -h
crank-build 0.1.0
Build binary targeting Playdate device or Simulator

USAGE:
    crank build [FLAGS] [OPTIONS]

FLAGS:
        --device     Build for the Playdate device
    -h, --help       Prints help information
        --release    Build artifacts in release mode, with optimizations
        --run        Run
    -V, --version    Prints version information

OPTIONS:
        --example <example>                Build a specific example from the examples/ dir
        --manifest-path <manifest-path>    Path to Cargo.toml

The command build is a bit of a misnomer, as it both builds, creates a .pdx directory and runs the game on the simulator or device.

In order to include assets like images, crank optionally reads a Crank.toml file with lists of files to include in the .pdx directory. See the wrapper repository for an example.

Crank is only regularly tested on Mac, but has worked on Windows and Linux in the past.

crank's People

Contributors

boozook avatar catt-io avatar kettle11 avatar lilyinstarlight avatar rtsuk avatar ruin0x11 avatar skeet70 avatar tjkirch 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.