Skip to content

superosku/oskuRTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oskuRTS is my RTS project. It is really early in development

Install dependencies

brew install rust
brew install sdl2 sdl2_gfx sdl2_ttf sdl2_mixer sdl2_image sdl2_ttf sdl2_gfx

Build and run the game

# Debug build:

cargo run

# Optimized build:

cargo build --release && ./target/release/rust-game

Instructions

WASD -> Move the camrea
mouse left click and drag -> Select units
mouse right click -> Order selected units to go to mouse location (hold Q for attack move)
P -> Toggle debug view
N -> Add unit to mouse position (hold to add many quickly)
M -> Add enemy unit
X -> Order stop for selected unit (stop doing what doing now)
IO -> Zoom in/out
KL -> Make tile water/land

Features

  • Rendering tilemap
  • Zooming and other camera handling
  • Unit collision detection with other units and the map
  • Selecting units
  • Path finding for selected group
  • Drawing graphics for units
  • Different teams and separate colors for teams units
  • Units attacking other team units
  • Units dying
  • HP bars
  • Much more

Todo next

  • Different kind of units
  • Buildings
  • Resource gathering
  • Unit building

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published