commit
2014ad42c8
@ -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
|
||||
|
@ -226,7 +226,7 @@ impl GlobalResources {
|
||||
)?,
|
||||
Vector2 { x: 10.0, y: 20.0 },
|
||||
6,
|
||||
1,
|
||||
2,
|
||||
),
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user