youyong5/moontetris/src does not have a README file
pub struct Game { width : Int height : Int board : Array[Array[Int]] current_x : Int current_y : Int current_kind : Int current_rotation : Int next_kind : Int hold_kind : Int can_hold : Bool score : Int lines : Int level : Int game_over : Bool seed : Int}
fn Game::check_collision(self : Game, new_x : Int, new_y : Int, rotation : Int) -> Bool
fn Game::clear_lines(self : Game) -> Unit
fn Game::hard_drop(self : Game) -> Unit
fn Game::hold(self : Game) -> Unit
fn Game::lock_piece(self : Game) -> Unit
fn Game::move_left(self : Game) -> Bool
fn Game::move_right(self : Game) -> Bool
fn Game::new() -> Game
fn Game::next_random_kind(self : Game) -> Int
fn Game::rotate(self : Game) -> Bool
fn Game::soft_drop(self : Game) -> Bool
fn Game::spawn(self : Game) -> Unit
fn Game::tick(self : Game) -> Unit
fn clear_rect(x : Double, y : Double, w : Double, h : Double) -> Unit
fn dump_srs_table(table : Array[(Int, Int)]) -> String
fn fill_rect(x : Double, y : Double, w : Double, h : Double) -> Unit
fn fill_text(_text : String, _x : Double, _y : Double) -> Unit
fn get_block(kind : Int, rotation : Int, row : Int, col : Int) -> Bool
fn get_block_raw(kind : Int, row : Int, col : Int) -> Bool
fn get_piece_anchor(kind : Int, rotation : Int) -> (Double, Double)
fn get_srs_kick_data(state_from : Int, state_to : Int) -> Array[(Int, Int)]
fn get_srs_kick_data_i(state_from : Int, state_to : Int) -> Array[(Int, Int)]
fn get_srs_plus_180_kick_data(state_from : Int, state_to : Int) -> Array[(Int, Int)]
fn get_srs_plus_180_kick_data_i(state_from : Int, state_to : Int) -> Array[(Int, Int)]
fn get_t_spin_corners() -> Array[(Int, Int)]
fn play_sound(sound_type : Int) -> Unit
fn set_fill_color(r : Int, g : Int, b : Int) -> Unit
fn set_font(_font : String) -> Unit
fn set_line_width(w : Double) -> Unit
fn set_stroke_color(r : Int, g : Int, b : Int) -> Unit
fn stroke_rect(x : Double, y : Double, w : Double, h : Double) -> Unit
fn wasm_get_level() -> Int
fn wasm_get_lines() -> Int
fn wasm_get_score() -> Int
fn wasm_hard_drop() -> Unit
fn wasm_hold() -> Unit
fn wasm_is_game_over() -> Bool
fn wasm_move_left() -> Unit
fn wasm_move_right() -> Unit
fn wasm_new_game() -> Unit
fn wasm_render() -> Unit
fn wasm_rotate() -> Unit
fn wasm_soft_drop() -> Unit
fn wasm_tick() -> Unit
Install
No dependencies
No dependents
Powered by MoonBit
© 2026 mooncakes.io