Compare commits
No commits in common. "2b6a708f6cdd01bfbd617e11e852db29913728a7" and "59a55a5056804cc4e4ddd2ea37fe4d2c77e38959" have entirely different histories.
2b6a708f6c
...
59a55a5056
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
.env
|
|
||||||
@ -1,19 +1,8 @@
|
|||||||
import os
|
|
||||||
from dotenv import load_dotenv, dotenv_values
|
|
||||||
|
|
||||||
from game import Game
|
from game import Game
|
||||||
from moon import Moon
|
from moon import Moon
|
||||||
from compute import *
|
from compute import *
|
||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
load_dotenv()
|
|
||||||
title = str(os.getenv("TITLE"))
|
|
||||||
fps = int(os.getenv("FPS"))
|
|
||||||
size = tuple(map(int, os.getenv("SIZE").split(',')))
|
|
||||||
theta = float(os.getenv("THETA"))
|
|
||||||
position_moon = tuple(map(int, os.getenv("POSITION_MOON").split(',')))
|
|
||||||
|
|
||||||
|
|
||||||
WHITE = (255, 255, 255)
|
WHITE = (255, 255, 255)
|
||||||
BLACK = (0,0,0)
|
BLACK = (0,0,0)
|
||||||
RED = (255,0,0)
|
RED = (255,0,0)
|
||||||
@ -24,7 +13,7 @@ AP_RADIUS = 5
|
|||||||
|
|
||||||
|
|
||||||
class Apollo(Moon):
|
class Apollo(Moon):
|
||||||
def __init__(self, title, fps, size, position_moon, theta):
|
def __init__(self, title="Apollo", fps=60, size=(640, 400), position_moon=(0, -150), theta=0.01):
|
||||||
super().__init__(title, fps, size)
|
super().__init__(title, fps, size)
|
||||||
self.position_moon = position_moon
|
self.position_moon = position_moon
|
||||||
self.position_ap = (0, 50)
|
self.position_ap = (0, 50)
|
||||||
@ -59,6 +48,6 @@ class Apollo(Moon):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# created by me and only me
|
# created by me and only me
|
||||||
game = Apollo(title, fps, size, position_moon, theta)
|
game = Apollo()
|
||||||
game.run()
|
game.run()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user