Skip to content

Simple clone of the game Battle City written in rust

Notifications You must be signed in to change notification settings

PsychoSanchez/battlecity-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

battlecity-rs

Simple 4 player Battle City game clone written in rust

This project is a rewrite of my 10 years old project BattleCity written in C++.

It uses the piston graphics for rendering game window, graphics and handling events. The game logic is written in pure rust. Project is cross-platform and should work on Windows, Linux and MacOS.

How to build

Prerequisites

  • Rust 1.51.0 or later
  • Cargo

Build

cargo build --release

Run

cargo run --release

How to play

Controls

  • Player 1: , , , to move, Spacebar to shoot

  • Player 2: W, A, S, D to move, C to shoot

  • Player 3: T, F, G, H to move, B to shoot

  • Player 4: I, J, K, L to move, M to shoot

  • Press R to restart the game

Power-ups

  • Armor (A): Increases the player's armor by 1, up to a maximum of 3
  • Health (H): Restores the player's health to full, up to a maximum of 3

Screenshots

screenshot

About

Simple clone of the game Battle City written in rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages