kostka

Crates.iokostka
lib.rskostka
version1.0.1
created_at2025-08-22 19:12:56.622796+00
updated_at2025-08-31 15:59:57.684556+00
descriptionSimple and lightweight Rubik's cube simulator
homepage
repositoryhttps://github.com/hejsztynx/kostka-cube
max_upload_size
id1806788
size2,119,673
Krystian Sienkiewicz (HejSztynx)

documentation

README

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).

Commit count: 87

cargo fmt