Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShamylZakariya/Platformer
/ functions
Functions
612 in github.com/ShamylZakariya/Platformer
⨍
Functions
612
◇
Types & classes
98
↓ 2 callers
Method
get_tile_position
Returns the column and row of the given tile, where (0,0) is the first or top-left tile in the tileset.
src/tileset.rs:295
↓ 2 callers
Method
get_tiles_with_property
(&self, property_key: &str, property_value: &str)
src/tileset.rs:287
↓ 2 callers
Method
has_property
(&self, name: &str)
src/tileset.rs:42
↓ 2 callers
Method
init_from_map_sprite
( &mut self, entity_id: u32, sprite: &sprite::Sprite, _tile: &tileset::Tile,
src/entities/bat.rs:54
↓ 2 callers
Function
instantiate_map_sprite
( classname: &str, sprite: &sprite::Sprite, tile: &tileset::Tile, map: &map::Map, collisio
src/entities/mod.rs:126
↓ 2 callers
Method
intersects_unit_rect
Returns true if this Sprite overlaps the described unit square with lower/left origin and extent of (1,1).
src/collision.rs:581
↓ 2 callers
Method
is_broadcast
(&self)
src/event_dispatch.rs:26
↓ 2 callers
Method
is_in_injury
(&self)
src/entities/firebrand.rs:980
↓ 2 callers
Method
layer_named
Returns the layer by the provided name, or None if not found
src/map.rs:512
↓ 2 callers
Method
lcd_hysteresis
(&self)
src/state/lcd_filter.rs:242
↓ 2 callers
Function
line_line
Return the intersection of two line segments, or None if they don't intersect
src/collision.rs:36
↓ 2 callers
Method
num_animation_frames
(&self)
src/entities/death_animation.rs:73
↓ 2 callers
Method
object_group_properties_for_sprite
Finds the ObjectGroup object in the provided layer occupying the same position and extent on the map as the provided sprite.
src/map.rs:525
↓ 2 callers
Method
ordered_checkpoints
Returns vector of the level's checkpoints, sorted along x from left to right, such that checkpoint 0 is the "first" in the level, and so on.
src/state/game_state.rs:932
↓ 2 callers
Method
play_stereo_sound
(&mut self, sound: Sounds, channel: Channel)
src/audio.rs:234
↓ 2 callers
Method
process_entity_additions
Adds all entities in the entities_to_add queue
src/state/game_state.rs:1121
↓ 2 callers
Method
process_keyboard
( &mut self, key: winit::keyboard::KeyCode, state: winit::event::ElementState, )
src/entities/boss_fish.rs:135
↓ 2 callers
Function
range_range_intersects
( origin_a: f32, extent_a: f32, origin_b: f32, extent_b: f32, )
src/collision.rs:10
↓ 2 callers
Method
resize
(&mut self, new_size: winit::dpi::PhysicalSize<u32>)
src/state/app_state.rs:170
↓ 2 callers
Method
right
(&self)
src/sprite/core.rs:139
↓ 2 callers
Method
shape
(&self)
src/tileset.rs:24
↓ 2 callers
Method
should_draw
(&self)
src/entities/power_up.rs:169
↓ 2 callers
Method
should_pause_current_track
(&self)
src/audio.rs:54
↓ 2 callers
Method
submersion_depth
(&self)
src/entities/boss_fish.rs:478
↓ 2 callers
Method
survives_level_restart
(&self)
src/entities/mod.rs:79
↓ 2 callers
Method
test_rect
Tests the specified rect against colliders, invoking the specified callback for each contact/overlap. Filters by mask, such that only sprites with mat
src/collision.rs:969
↓ 2 callers
Method
transition
(&self, key_down: bool)
src/input.rs:15
↓ 2 callers
Method
update_character_cycle
(&mut self, dt: f32)
src/entities/firebrand.rs:1396
↓ 2 callers
Method
update_drawer_position
(&mut self, dt: Duration)
src/state/game_ui.rs:498
↓ 2 callers
Method
update_uniforms
(&self, uniforms: &mut rendering::Uniforms)
src/entities/bat.rs:138
↓ 2 callers
Method
update_view_proj
(&mut self, camera: &Camera, projection: &Projection)
src/camera.rs:160
↓ 2 callers
Method
viewport_bounds
Return the bounds of the camera viewport expressed as (bottom_left,extent)
src/camera.rs:245
↓ 2 callers
Method
viewport_size
(&self)
src/camera.rs:119
↓ 2 callers
Method
window
(&self)
src/state/gpu_state.rs:126
↓ 1 callers
Method
apply_lateral_movement
Moves character horizontally, based on the current left/right input state. Returns tuple of updated position, and an optional collider representing th
src/entities/firebrand.rs:1138
↓ 1 callers
Method
apply_vertical_movement
( &mut self, collision_space: &collision::Space, position: Point2<f32>, dt: f3
src/entities/firebrand.rs:1299
↓ 1 callers
Method
begin_frame
(&mut self, window: &Window)
src/state/debug_overlay.rs:72
↓ 1 callers
Method
bottom
(&self)
src/collision.rs:633
↓ 1 callers
Method
camera_shake_pattern
(&self)
src/entities/rising_floor.rs:149
↓ 1 callers
Method
clamp_camera_position_to_bounds
(&mut self, bounds: Bounds)
src/camera.rs:257
↓ 1 callers
Method
contacting_sprites
(&self)
src/entities/firebrand.rs:962
↓ 1 callers
Method
create_ui_state_input
( &self, game_state: &GameState, lcd_filter: &LcdFilter, )
src/state/debug_overlay.rs:296
↓ 1 callers
Method
current_checkpoint
(&self)
src/state/game_controller.rs:157
↓ 1 callers
Method
current_map_bounds
returns the bounds of the map, which may be contracted owing to having entered the boss-fight-arena
src/state/game_state.rs:1007
↓ 1 callers
Method
current_movement_dir
(&self)
src/entities/util.rs:296
↓ 1 callers
Method
cycle_duration
(&self)
src/entities/death_animation.rs:80
↓ 1 callers
Method
deactivate_collider
(&mut self, collision_space: &mut collision::Space)
src/entities/boss_fish.rs:265
↓ 1 callers
Method
deactivate_collider
(&mut self, collision_space: &mut collision::Space)
src/entities/firebrand.rs:871
↓ 1 callers
Method
deactivate_collider
(&mut self, collision_space: &mut collision::Space)
src/entities/power_up.rs:142
↓ 1 callers
Method
determine_index
Determine the health point index of this dot. Since we don't have any way to pass arguments to an entity at construction, there's no way in game_ui.tm
src/entities/ui_health_dot.rs:124
↓ 1 callers
Method
did_enter_viewport
(&mut self)
src/entities/spawn_point.rs:120
↓ 1 callers
Method
did_exit_viewport
(&mut self)
src/entities/bat.rs:185
↓ 1 callers
Method
drain
Transfers ownership of message buffer to caller, and clears internal storage. This is meant to be used in partnership with
src/event_dispatch.rs:75
↓ 1 callers
Method
empty
(&self)
src/audio.rs:120
↓ 1 callers
Method
end_frame_and_draw
( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder,
src/state/debug_overlay.rs:78
↓ 1 callers
Method
entities_of_type
(&self, entity_class: entities::EntityClass)
src/state/game_state.rs:923
↓ 1 callers
Method
entity_id
(&self)
src/entities/flying_fish.rs:173
↓ 1 callers
Method
entity_id
(&self)
src/entities/spawn_point.rs:87
↓ 1 callers
Method
entity_id
(&self)
src/entities/check_point.rs:58
↓ 1 callers
Method
entity_id
(&self)
src/entities/fireball.rs:182
↓ 1 callers
Method
entity_id
(&self)
src/entities/hoodie.rs:152
↓ 1 callers
Method
event
(&mut self, event: &WindowEvent, event_loop: &winit::event_loop::ActiveEventLoop)
src/state/app_state.rs:110
↓ 1 callers
Method
fire
(&self)
src/entities/firebrand.rs:253
↓ 1 callers
Method
flipped_diagonally
(&self)
src/collision.rs:281
↓ 1 callers
Method
flipped_horizontally
(&self)
src/collision.rs:261
↓ 1 callers
Method
flipped_vertically
(&self)
src/collision.rs:271
↓ 1 callers
Method
game_over
(&mut self, message_dispatcher: &mut event_dispatch::Dispatcher)
src/state/game_state.rs:915
↓ 1 callers
Method
gamepad_input
(&mut self, event: gilrs::Event)
src/state/game_ui.rs:259
↓ 1 callers
Method
gamepad_input
Maps gamepad input into keyboard input. Total hack, but, it works.
src/entities/firebrand.rs:165
↓ 1 callers
Method
generate_animations
Returns a vector of all animated sprite names
src/map.rs:550
↓ 1 callers
Method
get_collider
(&self, collider_id: u32)
src/collision.rs:738
↓ 1 callers
Method
get_dynamic_colliders_intersecting_point
(&self, point: &Point2<f32>, mask: u32, mut cb: C)
src/collision.rs:921
↓ 1 callers
Method
get_first_dynamic_collider_intersecting_rect
( &self, origin: &Point2<f32>, extent: &Vector2<f32>, mask: u32, )
src/collision.rs:827
↓ 1 callers
Method
get_tile
(&self, id: u32)
src/tileset.rs:279
↓ 1 callers
Method
handle_input
(&mut self, window: &Window, event: &WindowEvent)
src/state/debug_overlay.rs:64
↓ 1 callers
Method
handle_message
(&mut self, message: &event_dispatch::Message)
src/state/game_ui.rs:451
↓ 1 callers
Method
handle_ui_interaction_output
( &mut self, ui_input_state: &UiInteractionOutput, game_state: &mut GameState,
src/state/debug_overlay.rs:327
↓ 1 callers
Function
hash_point3
(point: &Point3<f32>, state: &mut H)
src/util.rs:40
↓ 1 callers
Function
hash_vec4
(v: &Vector4<f32>, state: &mut H)
src/util.rs:57
↓ 1 callers
Function
hermite
(t: f32)
src/util.rs:20
↓ 1 callers
Method
index_of_checkpoint
Returns the index of the checkpoint with a given entity_id, if one exists, otherwise None.
src/state/game_state.rs:946
↓ 1 callers
Method
init
(&mut self, entity_id: u32, map: &map::Map, _collision_space: &mut collision::Space)
src/entities/fireball.rs:97
↓ 1 callers
Method
input
(&mut self, event: &WindowEvent)
src/state/app_state.rs:179
↓ 1 callers
Function
input_accumulator
Helper function to process positive/negative button presses - e.g., left/right into an accumulated value of -1 for negative, +1 for positive, and 0 if
src/input.rs:89
↓ 1 callers
Method
inset
(&self, by: Vector2<f32>)
src/util.rs:104
↓ 1 callers
Function
instantiate_entity_by_class_name
(classname: &str)
src/entities/mod.rs:94
↓ 1 callers
Method
intersects_line
if the line described by a->b intersects this Sprite, returns the point on it where the line segment intersects, otherwise, returns None
src/collision.rs:475
↓ 1 callers
Method
invert
(&self)
src/entities/util.rs:20
↓ 1 callers
Method
is_collider_activated
(&self, collider_id: u32)
src/collision.rs:774
↓ 1 callers
Method
is_diagonal
(&self)
src/entities/util.rs:134
↓ 1 callers
Method
is_enemy
(&self)
src/entities/mod.rs:55
↓ 1 callers
Method
is_in_water
(&self, collision_space: &collision::Space, position: Point2<f32>)
src/entities/firebrand.rs:1521
↓ 1 callers
Method
is_invulnerable
(&self)
src/entities/firebrand.rs:984
↓ 1 callers
Method
is_projectile
(&self)
src/entities/mod.rs:64
↓ 1 callers
Method
jump
(&self)
src/entities/firebrand.rs:241
↓ 1 callers
Method
lives_remaining
(&self)
src/state/game_controller.rs:161
↓ 1 callers
Method
loops
(&self)
src/audio.rs:107
↓ 1 callers
Method
mirrored
(&self, axis: Axis)
src/entities/util.rs:108
↓ 1 callers
Method
mouse_movement
(&mut self, pressed: bool, _position: Point2<f32>, delta: Vector2<f32>)
src/camera.rs:196
↓ 1 callers
Method
object_group_named
Returns the objectgroup by the provided name, or None if not found
src/map.rs:517
← previous
next →
101–200 of 612, ranked by callers