l1t

Crates.iol1t
lib.rsl1t
version0.2.1
sourcesrc
created_at2023-04-25 17:22:19.09757
updated_at2023-04-29 18:28:00.625287
descriptionA terminal strategy game about shooting lasers and lighting statues
homepagehttps://github.com/alex-laycalvert/l1t
repositoryhttps://github.com/alex-laycalvert/l1t
max_upload_size
id848681
size179,192
Alexander Lay-Calvert (alex-laycalvert)

documentation

README

l1t

A terminal strategy game about shooting lasers and lighting statues. Built in Rust.

l1t-logo

In l1t, your goal is to use the available lasers to light up all of the statues in the level.

Installation


Arch Linux AUR

l1t is available on the AUR under l1t-bin.

Using the AUR helper yay:

yay -S l1t-bin

Cargo/crates.io

l1t can be installed from crates.io using cargo:

cargo install l1t

Build from Source

To build l1t from the source code, make sure you have cargo from the Rust toolchain.

Once it's installed, you can use these steps:

git clone https://github.com/alex-laycalvert/l1t
cd l1t
cargo build

# Optionally, run directly with cargo
cargo run -- # your options here...

The l1t executable will then be available under target/release/l1t

Gameplay

The following guide is also built in to l1t and can be accessed by selecting HELP from the main menu or pressing Shift-H at anytime while playing a level.

CONTROLS

  • W - Move Up
  • S: Move Down
  • A: Move Left
  • D: Move Right
  • Space: Toggle surrounding blocks (if able)
  • Shift-H: Show this help menu
  • Q: Quit

Arrow keys can also be used to move around the level

PLAYER

Hey, that's you!

LASERS

Lasers shoot laser beams in their set direction (UP, DOWN, LEFT, RIGHT). Laser beams are the key to winning the game and can affect various blocks.

Lasers cannot change directions but they can be toggled on and off.

If a laser beam hits you, you will die and have to restart the level.

If a laser is hit by a laser beam, it will turn off and must be toggled on by the player.

STATUES

All statues in a level must be lit up by a laser beam to win the level.

Statues can not be moved or manually toggled.

REVERSE STATUES

Same as statues except they must NOT be lit up to win the level.

MIRRORS

Mirrors reflect laser beams in different directions.

Mirrors cannot be moved but their direction can be toggled by the player.

MOVEABLE MIRRORS

Moveable Mirrors are the same as mirrors except they CAN be moved.

ZAPPERS

If any Zappers are lit by a laser beam, you will lose the level.

OTHER BLOCKS

  • Walls: Cannot be moved by player, will block laser beams.

  • Blocks: Can be moved around and will block laser beams.

  • Toggle Blocks: Cannot be moved. Switches and buttons can toggle these on and off.

  • Switches: When toggled, will turn toggle blocks on/off.

  • Buttons: When pressed, will turn toggle blocks on/off. Player must be next to button to press.

Commit count: 185

cargo fmt