feat: implement gameloop
Implement a basic game loop that draws the startscreen, and the map after you hit the right button
This commit is contained in:
+9
-7
@@ -1,11 +1,13 @@
|
||||
import pygame
|
||||
from button import Button
|
||||
from settings import (COLOR_BUTTON,
|
||||
COLOR_BUTTON_HOVER,
|
||||
COLOR_STARTSCREEN_BACKGROUND,
|
||||
COLOR_STARTSCREEN_FONT_TITLE,
|
||||
COLOR_STARTSCREEN_FONT_LABEL)
|
||||
from text_input import TextInput
|
||||
from src.button import Button
|
||||
from src.settings import (
|
||||
COLOR_BUTTON,
|
||||
COLOR_BUTTON_HOVER,
|
||||
COLOR_STARTSCREEN_BACKGROUND,
|
||||
COLOR_STARTSCREEN_FONT_TITLE,
|
||||
COLOR_STARTSCREEN_FONT_LABEL,
|
||||
)
|
||||
from src.text_input import TextInput
|
||||
|
||||
class Startscreen:
|
||||
def __init__(self, screen):
|
||||
|
||||
Reference in New Issue
Block a user