Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coeuvre/rust-2048
/ functions
Functions
43 in github.com/coeuvre/rust-2048
⨍
Functions
43
◇
Types & classes
7
↓ 5 callers
Method
get_mut_tile
(&'b mut self, x: i32, y: i32)
src/board.rs:377
↓ 5 callers
Method
get_tile
(&'b self, x: i32, y: i32)
src/board.rs:367
↓ 4 callers
Method
generate_tile
(&mut self)
src/board.rs:29
↓ 4 callers
Method
start_moving
(&mut self, destination_tile_x: i32, destination_tile_y: i32)
src/tile.rs:56
↓ 4 callers
Method
tile_to_pos
(&self, tile_x: i32, tile_y: i32)
src/tile.rs:50
↓ 3 callers
Method
is_locking
(&self)
src/board.rs:319
↓ 3 callers
Function
rgb2rgba
(c: [f32; 3])
src/app.rs:21
↓ 2 callers
Method
get_mut_next_tile
(&'b mut self, x: i32, y: i32, step_x: i32, step_y: i32)
src/board.rs:344
↓ 2 callers
Method
get_next_tile
Returns next tile right besides (x, y)
src/board.rs:329
↓ 2 callers
Method
get_tile_count
(&self, x: i32, y: i32)
src/board.rs:387
↓ 2 callers
Method
merge_col
(&mut self, y_start: i32, y_end: i32, y_step: i32)
src/board.rs:128
↓ 2 callers
Method
merge_row
(&mut self, x_start: i32, x_end: i32, x_step: i32)
src/board.rs:230
↓ 2 callers
Function
rgb2rgba
(c: [f32; 3])
src/board.rs:9
↓ 1 callers
Method
add_score
(&mut self, score: i32)
src/board.rs:435
↓ 1 callers
Method
get_color
(&self)
src/tile.rs:143
↓ 1 callers
Method
key_press
(&mut self, args: &Button)
src/app.rs:108
↓ 1 callers
Method
load
(&mut self)
src/app.rs:71
↓ 1 callers
Method
merge_from_bottom_to_top
(&mut self)
src/board.rs:118
↓ 1 callers
Method
merge_from_left_to_right
(&mut self)
src/board.rs:220
↓ 1 callers
Method
merge_from_right_to_left
(&mut self)
src/board.rs:225
↓ 1 callers
Method
merge_from_top_to_bottom
(&mut self)
src/board.rs:123
↓ 1 callers
Function
number_to_digits
(number: u32)
src/number_renderer.rs:51
↓ 1 callers
Method
render
(&self, number_renderer: &NumberRenderer, c: &Context, gl: &mut GlGraphics)
src/board.rs:106
↓ 1 callers
Method
render
(&mut self, args: &RenderArgs, gl: &mut GlGraphics)
src/app.rs:89
↓ 1 callers
Method
render_board
(&self, c: &Context, gl: &mut GlGraphics)
src/board.rs:398
↓ 1 callers
Method
render_tiles
(&self, number_renderer: &NumberRenderer, c: &Context, gl: &mut GlGraphics)
src/board.rs:429
↓ 1 callers
Method
render_ui
(&self, c: &Context, gl: &mut GlGraphics)
src/app.rs:37
↓ 1 callers
Method
save
(&self)
src/settings.rs:251
↓ 1 callers
Method
update
(&mut self, args: &UpdateArgs)
src/app.rs:104
Method
default_settings
()
src/settings.rs:163
Method
from_settings_in_json
(s: &'a SettingsInJson)
src/settings.rs:42
Method
load
()
src/settings.rs:38
Function
main
()
src/main.rs:16
Method
new
(settings: &'a Settings)
src/board.rs:18
Method
new
()
src/number_renderer.rs:14
Method
new
(settings: &'a Settings)
src/app.rs:24
Method
new
(settings: &'a Settings, score: i32, tile_x: i32, tile_y: i32)
src/tile.rs:28
Method
new_combined
(settings: &'a Settings, score: i32, tile_x: i32, tile_y: i32)
src/tile.rs:39
Method
render
(&self, number: u32, center_x: f64, center_y: f64, max_width: f64, color: [f32; 3], c: &Cont
src/number_renderer.rs:23
Method
render
(&self, number_renderer: &NumberRenderer, c: &Context, gl: &mut GlGraphics)
src/tile.rs:105
Method
render_comment
(settings: &Settings, comment: &GlTexture, y: f64, c: &Context, gl: &mut GlGraphics)
src/app.rs:58
Method
update
(&mut self, dt: f64)
src/board.rs:50
Method
update
(&mut self, dt: f64)
src/tile.rs:74