diff options
| author | Baitinq <[email protected]> | 2022-02-12 21:20:37 +0000 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-02-12 21:20:37 +0000 |
| commit | 5edac23f6ab3f37167c24331ac8b17c673cbf732 (patch) | |
| tree | a26c8e99040aa1bb8a0fdf223b8c7ae7ed175f84 /src/main.py | |
| parent | Implemented proper 2d gravity (diff) | |
| download | OSLS-5edac23f6ab3f37167c24331ac8b17c673cbf732.tar.gz OSLS-5edac23f6ab3f37167c24331ac8b17c673cbf732.tar.bz2 OSLS-5edac23f6ab3f37167c24331ac8b17c673cbf732.zip | |
Fixed drag calculation and added orbit info sprite
Diffstat (limited to '')
| -rw-r--r-- | src/main.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.py b/src/main.py index 9942d84..b272571 100644 --- a/src/main.py +++ b/src/main.py @@ -16,6 +16,7 @@ from pygame.locals import * from gui.background_sprite import Sprite_Background from gui.rocket_sprite import Sprite_Rocket from gui.body_sprite import Sprite_Body +from gui.minimap_sprite import Sprite_Minimap import numpy as np from matplotlib import pyplot as plot @@ -76,8 +77,8 @@ def main(argv): pygame.display.set_caption("OSLS - Overly Simple Launch Simulator") clock = pygame.time.Clock() - SCREEN_WIDTH = 1024 - SCREEN_HEIGHT = 720 + SCREEN_WIDTH = 800 + SCREEN_HEIGHT = 940 sprite_group = pygame.sprite.Group() @@ -87,7 +88,8 @@ def main(argv): sprite_group.add(Sprite_Background(simulation), Sprite_Body(simulation, floor), - Sprite_Rocket(simulation, floor)) + Sprite_Rocket(simulation, floor), + Sprite_Minimap(simulation, 100)) simulation_display = pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT)) plot_coords = [] |