Merge pull request #39 from Ewpratten/assets

Assets
This commit is contained in:
Evan Pratten 2021-04-25 16:38:12 -04:00 committed by GitHub
commit 2014ad42c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -179,9 +179,11 @@ impl Screen for InGameScreen {
{
let mut context_2d = draw_handle.begin_mode2D(game_core.master_camera);
// Clear frame
context_2d.clear_background(Color::BLACK);
// Render the world
self.render_world(&mut context_2d, game_core, dt);
if game_core.show_simple_debug_info {
@ -208,6 +210,17 @@ impl Screen for InGameScreen {
);
}
// Render transponder
game_core.resources.transponder.draw(&mut context_2d, game_core.world.end_position + Vector2::new(0.0, -50.0), 0.0);
// Render Player
game_core
.player

View File

@ -226,7 +226,7 @@ impl GlobalResources {
)?,
Vector2 { x: 10.0, y: 20.0 },
6,
1,
2,
),
})