#bot #geode #game

slc_oxide

A tiny and fast replay format for Geometry Dash

1 unstable release

0.1.0 Mar 26, 2025

#55 in #bot

Download history 131/week @ 2025-03-26

131 downloads per month

MIT license

18KB
378 lines

slc replay format

A tiny and incredibly fast replay format for Geometry Dash.

Documentation

For documentation, please refer to the original slc repo.

Example

struct ReplayMeta {
  pub seed: u64
}

let mut replay = Replay::<ReplayMeta>::new(
  240.0, 
  ReplayMeta { 
    seed: 1234 
  }
);

// OR

let mut replay = Replay::<()>::new(240.0, ()); // For no meta

// Set tps by directly changing the value
replay.tps = 480.0;

// Add inputs using the `add_input` function
replay.add_input(200, InputData::Player(PlayerData {
  button: 1,
  hold: true,
  player_2: false
}));

// Other input types
replay.add_input(400, InputData::Death);
replay.add_input(600, InputData::TPS(480.0));

// Save the replay
let file = File::open("replay.slc")?;
let bw = BufWriter::new(file); // RECOMMENDED!
replay.write(bw)?;

Dependencies

~210–640KB
~15K SLoC