Skip to content

HejSztynx/kostka-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kostka

Your portable Rubik's Cube

Cube of God

A fast and lightweight Rubik’s Cube simulator written in Rust, featuring smooth real-time rendering and intuitive controls.

Features ✨

  • Pixels + winit rendering – lightweight, fast, and perfect for pixel-based graphics. pixels crate.io page

  • Manual 2D projection – all cube transformations and perspective math are done by hand, no external 3D engine.

  • Intuitive key mappingsspeedcube-ready controls designed to feel natural for cubers and provide highest mobility. Nothing better than relearning all of your algorithms on the keyboard all over again!

  • Smooth performance – Fluid experience with 120 FPS.

  • Timer functionality – measure your solve times directly in the app.

  • Custom settings - Adjust performance and cube speed settings

Presets

With some command-line parameters, you can adjust some of the application's attributes such as:

  • rendered resolution --res (directly affects performance)
  • speed at which the cube rotates --rs
  • speed at which layers are rotating during a move --ms

There are available 3 presets (low, medium, high) for each setting.

Example

kostka --res medium --ms high --rs low

The medium presets are set by default if no flags specified.

For further info use the --help option.

Controls 🎮

Key mappings are designed to resemble real cube rotations as much as possible. Experiment a bit — after a few tries it becomes second nature.

controls

Timer can be switched on and off with the 2 key. You can only start the timer after resetting the game and scrambling the cube with the 1 key.

Installing 🔧

Make sure that cargo bin directory is added to system's PATH

cargo install kostka
kostka

Requires Rust installed (latest stable recommended).

About

Lightweight and intuitive Rubik's cube simulator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages