Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cjdell/ch32-game-rust
/ functions
Functions
48 in github.com/cjdell/ch32-game-rust
⨍
Functions
48
◇
Types & classes
8
↓ 7 callers
Method
accelerate
(&mut self, delta: Vec2)
crates/common/src/scene.rs:458
↓ 5 callers
Method
add_entity
(&mut self, entity: GameEntity)
crates/common/src/scene.rs:87
↓ 5 callers
Method
next_id
(&mut self)
crates/common/src/scene.rs:81
↓ 4 callers
Method
bounding_box
(&self)
crates/common/src/scene.rs:489
↓ 4 callers
Function
slope_collision
( // debug_points: Arc<RwLock<Vec<Vec2>>>, player_edge_pos: Vec2, p0: Vec2, p1: Vec2, )
crates/common/src/scene.rs:976
↓ 3 callers
Method
init
(&mut self)
crates/common/src/scene.rs:30
↓ 3 callers
Method
reset
(&mut self)
crates/common/src/scene.rs:111
↓ 2 callers
Method
can_collide
(&self, entity: &GameEntity)
crates/common/src/scene.rs:330
↓ 2 callers
Function
get_tile_collision_flat
( // debug_points: Arc<RwLock<Vec<Vec2>>>, tile_boundary: BoundingBox, surface_type: SurfaceType,
crates/common/src/scene.rs:926
↓ 2 callers
Method
handle_collisions
(&mut self, dt: I22F10)
crates/common/src/scene.rs:121
↓ 2 callers
Method
intersects
(&self, other: &Self)
crates/common/src/core.rs:140
↓ 2 callers
Method
is_ball
(&self)
crates/common/src/scene.rs:497
↓ 2 callers
Method
left
(&mut self, dt: I22F10)
crates/common/src/scene.rs:397
↓ 2 callers
Function
nibble_to_ascii
Converts a single nibble (4 bits) to its ASCII hex representation. Assumes nibble <= 0xF.
crates/oled-test/src/main.rs:170
↓ 2 callers
Method
normalized_fixed10
(&self)
crates/common/src/core.rs:110
↓ 2 callers
Function
render_row
(scene: &mut Scene, buf: &mut [u8; 128], row: i32)
crates/common/src/renderer.rs:9
↓ 2 callers
Method
right
(&mut self, dt: I22F10)
crates/common/src/scene.rs:403
↓ 2 callers
Method
up
(&mut self, dt: I22F10)
crates/common/src/scene.rs:388
↓ 2 callers
Method
update
(&mut self, dt: I22F10)
crates/common/src/scene.rs:101
↓ 1 callers
Function
get_map_tile
(w: Vec2)
crates/common/src/scene.rs:1018
↓ 1 callers
Function
get_tile_collision
( // debug_points: Arc<RwLock<Vec<Vec2>>>, tile_boundary: BoundingBox, surface_type: SurfaceType,
crates/common/src/scene.rs:862
↓ 1 callers
Method
handle_collision
(&mut self, i: usize, j: usize, dt: I22F10)
crates/common/src/scene.rs:334
↓ 1 callers
Method
length_squared
(&self)
crates/common/src/core.rs:106
↓ 1 callers
Function
print_digit
Sends a single ASCII digit to the UART
crates/oled-test/src/main.rs:142
↓ 1 callers
Function
print_unsigned
Write an integer (u32) to UART without leading zeros
crates/oled-test/src/main.rs:147
↓ 1 callers
Function
set_pixel
(buffer: &mut Vec<u32>, x: usize, y: usize, color: u32)
crates/local-test/src/main.rs:98
Method
add
(self, rhs: Self)
crates/common/src/core.rs:34
Method
add_assign
(&mut self, rhs: Self)
crates/common/src/core.rs:76
Method
collides_with
(&self, other: &GameEntity)
crates/common/src/scene.rs:493
Method
distance
(a: &Vec2, b: &Vec2)
crates/common/src/core.rs:88
Method
div
(self, rhs: I22F10)
crates/common/src/core.rs:67
Method
dot
(a: Vec2, b: Vec2)
crates/common/src/core.rs:114
Method
from_center_size
(center: Vec2, size: Vec2)
crates/common/src/core.rs:131
Function
get_tile_pixel
(texture_index: usize, tx: i32, ty: i32)
crates/common/src/scene.rs:1050
Method
handle_player_collision
( player: &mut GameEntity, other: &mut GameEntity, dt: I22F10, )
crates/common/src/scene.rs:363
Method
intersects_point
(&self, point: Vec2)
crates/common/src/core.rs:147
Method
intersects_point_i
(&self, point: Vec2)
crates/common/src/core.rs:154
Function
main
()
crates/local-test/src/main.rs:18
Function
main
()
crates/oled-test/build.rs:1
Function
main
()
crates/oled-test/src/main.rs:38
Method
mul
(self, rhs: I22F10)
crates/common/src/core.rs:56
Method
new
()
crates/common/src/scene.rs:20
Method
new
(x: I22F10, y: I22F10)
crates/common/src/core.rs:95
Method
player_pos
(&mut self)
crates/common/src/scene.rs:409
Method
remove_entity
(&mut self, id: EntityId)
crates/common/src/scene.rs:97
Method
sub
(self, rhs: Self)
crates/common/src/core.rs:45
Function
write_hex_byte
Writes the ASCII hex representation of `byte` into `buf`. `buf` must be exactly 2 bytes long.
crates/oled-test/src/main.rs:180
Method
zero
()
crates/common/src/core.rs:99