MCPcopy Create free account

hub / github.com/ShamylZakariya/Platformer / functions

Functions612 in github.com/ShamylZakariya/Platformer

↓ 48 callersMethodcontext
(&self)
src/state/debug_overlay.rs:28
↓ 23 callersMethoditer
()
src/entities/util.rs:139
↓ 21 callersMethodset_model_position
(&mut self, position: Point3<f32>)
src/sprite/rendering.rs:178
↓ 14 callersMethodbroadcast
Sends a message to every active Entity, as well as the GameState
src/event_dispatch.rs:42
↓ 14 callersMethodget_property
(&self, name: &str)
src/tileset.rs:64
↓ 14 callersMethodhash
(&self, state: &mut H)
src/collision.rs:337
↓ 14 callersMethodposition
(&self)
src/entities/bat.rs:161
↓ 12 callersMethoddraw
( &'a self, render_pass: &mut wgpu::RenderPass<'a>, material: &'a Material, ca
src/sprite/rendering.rs:428
↓ 12 callersMethodprocess_potential_collision_with
If the sprite contacts our player's bounds, inserts into contacting_sprites, otherwise inserts into overlapping_sprites (which are useful for debuggin
src/entities/firebrand.rs:1388
↓ 12 callersMethodwrite
(&self, queue: &mut wgpu::Queue)
src/util.rs:160
↓ 11 callersMethodadd_collider
(&mut self, collider: Collider)
src/collision.rs:720
↓ 11 callersMethodset_stance
(&mut self, new_stance: Stance)
src/entities/firebrand.rs:1021
↓ 10 callersMethodbounds
(&self)
src/entities/fireball.rs:198
↓ 9 callersMethodset_pixels_per_unit
(&mut self, pixels_per_unit: Vector2<f32>)
src/state/lcd_filter.rs:128
↓ 8 callersMethodbottom
(&self)
src/sprite/core.rs:143
↓ 8 callersMethodentity_to_global
Sends a message to every active Entity, as well as the GameState
src/event_dispatch.rs:47
↓ 8 callersMethodget_sprite_size
Returns the size of a sprite tile
src/tileset.rs:275
↓ 8 callersMethodplay_sound
(&mut self, sound: Sounds)
src/audio.rs:224
↓ 8 callersMethodset_color
(&mut self, color: Vector4<f32>)
src/sprite/rendering.rs:173
↓ 8 callersMethodset_palette_shift
MARK: Public
src/state/game_ui.rs:472
↓ 8 callersFunctiontest_containment
(mut collider: Collider)
src/collision.rs:1308
↓ 8 callersMethodwindow
(&self)
src/state/app_state.rs:106
↓ 7 callersMethodgenerate_sprites
Generates a vector of Sprite for the contents of the specified layer
src/map.rs:595
↓ 7 callersMethodget_collider_at
(&self, point: Point2<i32>, mask: u32)
src/collision.rs:811
↓ 7 callersMethodintersects_rect
Returns true if this Sprite overlaps the described rect with lower/left origin and extent and inset. Inset: The amount to inset the test rect contact:
src/collision.rs:543
↓ 7 callersMethodleft
(&self)
src/collision.rs:619
↓ 7 callersMethodrequest_add_entity
Request that the provided entity be added to the GameState at the next update. Returns the entity_id of the entity if it's already been initialized, o
src/state/game_state.rs:1054
↓ 7 callersMethodscale
(&self)
src/camera.rs:123
↓ 7 callersMethodset_sprite_scale
(&mut self, sprite_scale: Vector2<f32>)
src/sprite/rendering.rs:188
↓ 7 callersMethodupdate_collider_position
(&mut self, collider_id: u32, new_position: Point2<f32>)
src/collision.rs:778
↓ 7 callersMethodwidth
(&self)
src/util.rs:98
↓ 6 callersMethodget_static_collider_at
(&self, point: Point2<i32>, mask: u32)
src/collision.rs:954
↓ 6 callersMethodleft
(&self)
src/sprite/core.rs:135
↓ 5 callersMethodboolean_property
(&self, name: &str)
src/tileset.rs:46
↓ 5 callersMethodcontains_point
(&self, point: &Point2<f32>)
src/collision.rs:415
↓ 5 callersMethodentity_id
(&self)
src/entities/bat.rs:149
↓ 5 callersMethodis_active
(&self)
src/input.rs:33
↓ 5 callersMethodis_paused
(&self)
src/state/game_ui.rs:480
↓ 5 callersFunctionline_convex_poly_closest
If the line a->b intersects the convex polygon, returns the intersection closest to a
src/collision.rs:103
↓ 5 callersMethodright
(&self)
src/collision.rs:626
↓ 5 callersMethodtop
(&self)
src/sprite/core.rs:147
↓ 4 callersMethodbounds
(&self)
src/collision.rs:305
↓ 4 callersMethodbounds
(&self)
src/sprite/core.rs:151
↓ 4 callersFunctioncross
Simple cross product for 2D vectors; cgmath doesn't define this because cross product doesn't make sense generally for 2D.
src/util.rs:12
↓ 4 callersMethoddeactivate_collider
(&mut self, collision_space: &mut collision::Space)
src/entities/bat.rs:142
↓ 4 callersMethodentity_class
(&self)
src/entities/bat.rs:153
↓ 4 callersMethodget_button_state
(&self, key: winit::keyboard::KeyCode)
src/input.rs:57
↓ 4 callersMethodget_firebrand
(&self)
src/state/game_state.rs:1041
↓ 4 callersMethodget_tex_coords_for_tile
(&self, tile: &Tile)
src/tileset.rs:312
↓ 4 callersFunctionhash_vec2
(v: &Vector2<f32>, state: &mut H)
src/util.rs:46
↓ 4 callersMethodid
(&self)
src/entity.rs:234
↓ 4 callersMethodis_alive
(&self)
src/entities/util.rs:223
↓ 4 callersMethodis_wallholding
(&self)
src/entities/firebrand.rs:976
↓ 4 callersMethodreceive_injury
(&mut self, damage: u32)
src/entities/firebrand.rs:1543
↓ 4 callersMethodset_attack_phase
(&mut self, new_phase: AttackPhase)
src/entities/boss_fish.rs:464
↓ 4 callersMethodstart_track
(&mut self, track: Tracks)
src/audio.rs:169
↓ 4 callersMethodto_dir
(self)
src/entities/util.rs:93
↓ 3 callersMethodbuffer
(&self)
src/audio.rs:50
↓ 3 callersMethodcharacter_facing
(&self)
src/entities/firebrand.rs:1496
↓ 3 callersMethodclass
(&self)
src/entity.rs:238
↓ 3 callersMethodentity_id
(&self)
src/collision.rs:661
↓ 3 callersMethodentity_id
(&self)
src/entities/firebrand.rs:878
↓ 3 callersMethodentity_to_entity
Sends a message from one entity to another
src/event_dispatch.rs:52
↓ 3 callersMethodfind_character_footing
looks beneath `position` to find the surface that the character would be standing on. This should be called after gravity is applied, but before any u
src/entities/firebrand.rs:1062
↓ 3 callersMethodfloat_property
(&self, name: &str)
src/tileset.rs:50
↓ 3 callersMethodgenerate
(&self, layer: &Layer, mut entity_id_vendor: E, z_depth: Z, mut consumer: C)
src/map.rs:652
↓ 3 callersMethodglobal_to_entity
Sends a message to a single Entity, with no sender. This is generally reserved for use by GameState since it has no entity id.
src/event_dispatch.rs:59
↓ 3 callersFunctionhash_point2
(point: &Point2<f32>, state: &mut H)
src/util.rs:35
↓ 3 callersMethodheight
(&self)
src/util.rs:101
↓ 3 callersFunctionlerp
(t: f32, a: f32, b: f32)
src/util.rs:16
↓ 3 callersMethodmove_left
(&self)
src/entities/firebrand.rs:245
↓ 3 callersMethodmove_right
(&self)
src/entities/firebrand.rs:249
↓ 3 callersMethodnext_id
(&mut self)
src/entity.rs:31
↓ 3 callersMethodposition
(&self)
src/camera.rs:44
↓ 3 callersMethodprobe
Probes `max_steps` in the collision space from `position` in `dir`, returning a ProbeResult Ignores any colliders which don't match the provided `mask
src/collision.rs:1092
↓ 3 callersMethodset_palette_shift
(&mut self, palette_shift: f32)
src/state/game_state.rs:876
↓ 3 callersMethodset_scale
(&mut self, scale: f32)
src/camera.rs:127
↓ 3 callersMethodsprite_cycle
(&self)
src/entities/bat.rs:169
↓ 3 callersMethodsprite_name
(&self)
src/entities/bat.rs:165
↓ 3 callersMethodstop_current_track
(&mut self)
src/audio.rs:217
↓ 3 callersMethodvolume
(&self)
src/audio.rs:60
↓ 2 callersMethod_probe_line
( &self, position: Point2<f32>, dir: ProbeDir, max_steps: i32, mask: u
src/collision.rs:1148
↓ 2 callersMethodactivate_collider
(&mut self, collider_id: u32)
src/collision.rs:759
↓ 2 callersMethodadd_entity
Adds the entity specified in the request
src/state/game_state.rs:1079
↓ 2 callersFunctionapply_gravity
(vertical_velocity: f32, dt: f32)
src/state/constants.rs:47
↓ 2 callersMethodcalc_matrix
(&self)
src/camera.rs:58
↓ 2 callersFunctionclamp
(v: f32, min: f32, max: f32)
src/util.rs:25
↓ 2 callersMethodcollider_bounds
(&mut self)
src/entities/boss_fish.rs:474
↓ 2 callersMethodcollider_position
(&self)
src/entities/rising_floor.rs:142
↓ 2 callersFunctioncreate_collision_probe_test
( position: Point2<f32>, )
src/entities/firebrand.rs:98
↓ 2 callersFunctioncreate_render_pipeline
( device: &wgpu::Device, layout: &wgpu::PipelineLayout, color_format: wgpu::TextureFormat, dep
src/sprite/rendering.rs:15
↓ 2 callersMethoddraw_sprites
Draws the sprites that best match the sprites in I. Since meshes are expensive to create, we attempt to find the sprite mesh that best corresponds to
src/sprite/rendering.rs:450
↓ 2 callersMethodduration_for_frame
(&self, frame: usize)
src/sprite/rendering.rs:686
↓ 2 callersMethodextent
(&self)
src/collision.rs:605
↓ 2 callersMethodfile
(&self)
src/audio.rs:32
↓ 2 callersFunctionfind_bounds
Returns the bounding rect containing all the provided sprites
src/sprite/core.rs:210
↓ 2 callersMethodgame_state_peek
(&self)
src/state/game_state.rs:919
↓ 2 callersMethodgenerate_entities
( &self, layer: &Layer, collision_space: &mut collision::Space, entity_id_vend
src/map.rs:615
↓ 2 callersMethodget_dynamic_colliders_intersecting_rect
( &self, origin: &Point2<f32>, extent: &Vector2<f32>, mask: u32, mut c
src/collision.rs:881
↓ 2 callersMethodget_first_dynamic_collider_containing_point
( &self, point: &Point2<f32>, mask: u32, )
src/collision.rs:856
next →1–100 of 612, ranked by callers