The collision check was off on the right edge (you could keep jumping on the empty tile next to the trampoline), and the sound effect triggered more often than it should. You can test this on the level `misdirection`. The physics are just weird, but no weirder than the original, so meh. Co-authored-by: Tuubi <email@example.com> Reviewed-on: https://codeberg.org/ysblokje/linux-game-jam-2019-game/pulls/44 Co-authored-by: Tuubi <firstname.lastname@example.org> Co-committed-by: Tuubi <email@example.com>
|1 week ago|
|ascii-platformer/data||2 months ago|
|docker||2 years ago|
|docs||2 months ago|
|scripts||2 months ago|
|src||1 week ago|
|.gitignore||2 months ago|
|.gitlab-ci.yml||2 years ago|
|.gitmodules||2 months ago|
|Cargo.toml||3 weeks ago|
|LICENSE||2 years ago|
|README.md||1 week ago|
Cursed Pl@tformer is a simple platformer game originally written in C using Curses and SDL2 for Linux Game Jam 2019. This is a (mostly faithful) Rust port started by Ysblokje as a language learning project, and Tuubi was later cajoled into contributing some bits.
Cursed Pl@tformer is licensed under GPLv3, except for the third-party assets which are detailed further in this document.
More information and pre-compiled binaries for the original game can be found on the Itch page: https://samsai.itch.io/cursed-platformer
The Rust version(s)
This version comes in 2 flavours
- pure curses based
- pure SDL2 based
On Linux, the curses based version runs in your terminal, using ncurses (via pancurses) for display. The SDL2 version uses our own character based graphics engine, with added support for gamepads and audio via SDL2.
On Windows, pancurses uses PDCurses as its backend, which means that you basically get two SDL2 based games, but only one of them has audio support and nicer controls.
There's no more mixing and matching of platforms, because Ysblokje got lazy towards the end.
In order to build the game you need a working Rust build environment, including Cargo, on Linux or Windows.
If you don't know how to set it all up, take a look at rustup.
Fetching the source code with git
git clone https://codeberg.org/ysblokje/linux-game-jam-2019-game.git
Building and running
To build and run the game, use the following commands:
to compile both versions, or
cargo build --bin cursedplatformercurses
for the curses based one, or
cargo build --bin cursedplatformersdl2
for—you guessed it by now—the SDL2 version.
For an optimized build without debug symbols, add the
Since there are two binaries,
cargo run will not work. Instead, use the
--bin switch to run your preferred binary:
cargo run --bin cursedplatformercurses
cargo run --bin cursedplatformersdl2
Command line switches for the game engine
You can start from a level of your choosing by passing the
-m switch, followed by the name of the folder containing the level data. The default levels can be found under
cargo run --bin cursedplatformersdl2 --release -- -m ledge
For those who wish to create a completely new game,
--game also exists. Use this to point to a path containing the
data directory of your game. You'll need to copy over the
audio directory and the ttf font, and you'll need at least one level called
menu. These aren't easily customizable for now, sorry.
docs/level-editing.md for instructions on editing or creating your own levels.
- Ysblokje - Most of the work for the new Rust port.
- Tuubi - Odd jobs.
- Samsai - Things and stuff.
Midnight Tale by Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
CC Attribution-licensed sound effects by freesound.org users:
The rest of the included audio was originally released under the CC 0-license.
Font (for pdcurses):