MCPcopy Create free account

hub / github.com/ShamylZakariya/Platformer / functions

Functions612 in github.com/ShamylZakariya/Platformer

↓ 2 callersMethodget_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 callersMethodget_tiles_with_property
(&self, property_key: &str, property_value: &str)
src/tileset.rs:287
↓ 2 callersMethodhas_property
(&self, name: &str)
src/tileset.rs:42
↓ 2 callersMethodinit_from_map_sprite
( &mut self, entity_id: u32, sprite: &sprite::Sprite, _tile: &tileset::Tile,
src/entities/bat.rs:54
↓ 2 callersFunctioninstantiate_map_sprite
( classname: &str, sprite: &sprite::Sprite, tile: &tileset::Tile, map: &map::Map, collisio
src/entities/mod.rs:126
↓ 2 callersMethodintersects_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 callersMethodis_broadcast
(&self)
src/event_dispatch.rs:26
↓ 2 callersMethodis_in_injury
(&self)
src/entities/firebrand.rs:980
↓ 2 callersMethodlayer_named
Returns the layer by the provided name, or None if not found
src/map.rs:512
↓ 2 callersMethodlcd_hysteresis
(&self)
src/state/lcd_filter.rs:242
↓ 2 callersFunctionline_line
Return the intersection of two line segments, or None if they don't intersect
src/collision.rs:36
↓ 2 callersMethodnum_animation_frames
(&self)
src/entities/death_animation.rs:73
↓ 2 callersMethodobject_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 callersMethodordered_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 callersMethodplay_stereo_sound
(&mut self, sound: Sounds, channel: Channel)
src/audio.rs:234
↓ 2 callersMethodprocess_entity_additions
Adds all entities in the entities_to_add queue
src/state/game_state.rs:1121
↓ 2 callersMethodprocess_keyboard
( &mut self, key: winit::keyboard::KeyCode, state: winit::event::ElementState, )
src/entities/boss_fish.rs:135
↓ 2 callersFunctionrange_range_intersects
( origin_a: f32, extent_a: f32, origin_b: f32, extent_b: f32, )
src/collision.rs:10
↓ 2 callersMethodresize
(&mut self, new_size: winit::dpi::PhysicalSize<u32>)
src/state/app_state.rs:170
↓ 2 callersMethodright
(&self)
src/sprite/core.rs:139
↓ 2 callersMethodshape
(&self)
src/tileset.rs:24
↓ 2 callersMethodshould_draw
(&self)
src/entities/power_up.rs:169
↓ 2 callersMethodshould_pause_current_track
(&self)
src/audio.rs:54
↓ 2 callersMethodsubmersion_depth
(&self)
src/entities/boss_fish.rs:478
↓ 2 callersMethodsurvives_level_restart
(&self)
src/entities/mod.rs:79
↓ 2 callersMethodtest_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 callersMethodtransition
(&self, key_down: bool)
src/input.rs:15
↓ 2 callersMethodupdate_character_cycle
(&mut self, dt: f32)
src/entities/firebrand.rs:1396
↓ 2 callersMethodupdate_drawer_position
(&mut self, dt: Duration)
src/state/game_ui.rs:498
↓ 2 callersMethodupdate_uniforms
(&self, uniforms: &mut rendering::Uniforms)
src/entities/bat.rs:138
↓ 2 callersMethodupdate_view_proj
(&mut self, camera: &Camera, projection: &Projection)
src/camera.rs:160
↓ 2 callersMethodviewport_bounds
Return the bounds of the camera viewport expressed as (bottom_left,extent)
src/camera.rs:245
↓ 2 callersMethodviewport_size
(&self)
src/camera.rs:119
↓ 2 callersMethodwindow
(&self)
src/state/gpu_state.rs:126
↓ 1 callersMethodapply_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 callersMethodapply_vertical_movement
( &mut self, collision_space: &collision::Space, position: Point2<f32>, dt: f3
src/entities/firebrand.rs:1299
↓ 1 callersMethodbegin_frame
(&mut self, window: &Window)
src/state/debug_overlay.rs:72
↓ 1 callersMethodbottom
(&self)
src/collision.rs:633
↓ 1 callersMethodcamera_shake_pattern
(&self)
src/entities/rising_floor.rs:149
↓ 1 callersMethodclamp_camera_position_to_bounds
(&mut self, bounds: Bounds)
src/camera.rs:257
↓ 1 callersMethodcontacting_sprites
(&self)
src/entities/firebrand.rs:962
↓ 1 callersMethodcreate_ui_state_input
( &self, game_state: &GameState, lcd_filter: &LcdFilter, )
src/state/debug_overlay.rs:296
↓ 1 callersMethodcurrent_checkpoint
(&self)
src/state/game_controller.rs:157
↓ 1 callersMethodcurrent_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 callersMethodcurrent_movement_dir
(&self)
src/entities/util.rs:296
↓ 1 callersMethodcycle_duration
(&self)
src/entities/death_animation.rs:80
↓ 1 callersMethoddeactivate_collider
(&mut self, collision_space: &mut collision::Space)
src/entities/boss_fish.rs:265
↓ 1 callersMethoddeactivate_collider
(&mut self, collision_space: &mut collision::Space)
src/entities/firebrand.rs:871
↓ 1 callersMethoddeactivate_collider
(&mut self, collision_space: &mut collision::Space)
src/entities/power_up.rs:142
↓ 1 callersMethoddetermine_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 callersMethoddid_enter_viewport
(&mut self)
src/entities/spawn_point.rs:120
↓ 1 callersMethoddid_exit_viewport
(&mut self)
src/entities/bat.rs:185
↓ 1 callersMethoddrain
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 callersMethodempty
(&self)
src/audio.rs:120
↓ 1 callersMethodend_frame_and_draw
( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder,
src/state/debug_overlay.rs:78
↓ 1 callersMethodentities_of_type
(&self, entity_class: entities::EntityClass)
src/state/game_state.rs:923
↓ 1 callersMethodentity_id
(&self)
src/entities/flying_fish.rs:173
↓ 1 callersMethodentity_id
(&self)
src/entities/spawn_point.rs:87
↓ 1 callersMethodentity_id
(&self)
src/entities/check_point.rs:58
↓ 1 callersMethodentity_id
(&self)
src/entities/fireball.rs:182
↓ 1 callersMethodentity_id
(&self)
src/entities/hoodie.rs:152
↓ 1 callersMethodevent
(&mut self, event: &WindowEvent, event_loop: &winit::event_loop::ActiveEventLoop)
src/state/app_state.rs:110
↓ 1 callersMethodfire
(&self)
src/entities/firebrand.rs:253
↓ 1 callersMethodflipped_diagonally
(&self)
src/collision.rs:281
↓ 1 callersMethodflipped_horizontally
(&self)
src/collision.rs:261
↓ 1 callersMethodflipped_vertically
(&self)
src/collision.rs:271
↓ 1 callersMethodgame_over
(&mut self, message_dispatcher: &mut event_dispatch::Dispatcher)
src/state/game_state.rs:915
↓ 1 callersMethodgamepad_input
(&mut self, event: gilrs::Event)
src/state/game_ui.rs:259
↓ 1 callersMethodgamepad_input
Maps gamepad input into keyboard input. Total hack, but, it works.
src/entities/firebrand.rs:165
↓ 1 callersMethodgenerate_animations
Returns a vector of all animated sprite names
src/map.rs:550
↓ 1 callersMethodget_collider
(&self, collider_id: u32)
src/collision.rs:738
↓ 1 callersMethodget_dynamic_colliders_intersecting_point
(&self, point: &Point2<f32>, mask: u32, mut cb: C)
src/collision.rs:921
↓ 1 callersMethodget_first_dynamic_collider_intersecting_rect
( &self, origin: &Point2<f32>, extent: &Vector2<f32>, mask: u32, )
src/collision.rs:827
↓ 1 callersMethodget_tile
(&self, id: u32)
src/tileset.rs:279
↓ 1 callersMethodhandle_input
(&mut self, window: &Window, event: &WindowEvent)
src/state/debug_overlay.rs:64
↓ 1 callersMethodhandle_message
(&mut self, message: &event_dispatch::Message)
src/state/game_ui.rs:451
↓ 1 callersMethodhandle_ui_interaction_output
( &mut self, ui_input_state: &UiInteractionOutput, game_state: &mut GameState,
src/state/debug_overlay.rs:327
↓ 1 callersFunctionhash_point3
(point: &Point3<f32>, state: &mut H)
src/util.rs:40
↓ 1 callersFunctionhash_vec4
(v: &Vector4<f32>, state: &mut H)
src/util.rs:57
↓ 1 callersFunctionhermite
(t: f32)
src/util.rs:20
↓ 1 callersMethodindex_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 callersMethodinit
(&mut self, entity_id: u32, map: &map::Map, _collision_space: &mut collision::Space)
src/entities/fireball.rs:97
↓ 1 callersMethodinput
(&mut self, event: &WindowEvent)
src/state/app_state.rs:179
↓ 1 callersFunctioninput_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 callersMethodinset
(&self, by: Vector2<f32>)
src/util.rs:104
↓ 1 callersFunctioninstantiate_entity_by_class_name
(classname: &str)
src/entities/mod.rs:94
↓ 1 callersMethodintersects_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 callersMethodinvert
(&self)
src/entities/util.rs:20
↓ 1 callersMethodis_collider_activated
(&self, collider_id: u32)
src/collision.rs:774
↓ 1 callersMethodis_diagonal
(&self)
src/entities/util.rs:134
↓ 1 callersMethodis_enemy
(&self)
src/entities/mod.rs:55
↓ 1 callersMethodis_in_water
(&self, collision_space: &collision::Space, position: Point2<f32>)
src/entities/firebrand.rs:1521
↓ 1 callersMethodis_invulnerable
(&self)
src/entities/firebrand.rs:984
↓ 1 callersMethodis_projectile
(&self)
src/entities/mod.rs:64
↓ 1 callersMethodjump
(&self)
src/entities/firebrand.rs:241
↓ 1 callersMethodlives_remaining
(&self)
src/state/game_controller.rs:161
↓ 1 callersMethodloops
(&self)
src/audio.rs:107
↓ 1 callersMethodmirrored
(&self, axis: Axis)
src/entities/util.rs:108
↓ 1 callersMethodmouse_movement
(&mut self, pressed: bool, _position: Point2<f32>, delta: Vector2<f32>)
src/camera.rs:196
↓ 1 callersMethodobject_group_named
Returns the objectgroup by the provided name, or None if not found
src/map.rs:517
← previousnext →101–200 of 612, ranked by callers