Inital commit
Straight up fucked everything up so the history is gone. My bad.
This commit is contained in:
40
__init__.py
Normal file
40
__init__.py
Normal file
@ -0,0 +1,40 @@
|
||||
import logging
|
||||
import pygame
|
||||
import gameUtils
|
||||
import NoPELib
|
||||
|
||||
class Game(gameUtils.Game):
|
||||
def __init__(self, surface, size):
|
||||
"""
|
||||
Ran when the game starts.
|
||||
|
||||
Args:
|
||||
surface (pygame.Surface): The surface you draw to.
|
||||
size (list[int, int]): The size of the surface.
|
||||
"""
|
||||
|
||||
pygame.init()
|
||||
self.surface = surface
|
||||
self.size = size
|
||||
|
||||
def onEvent(self, event):
|
||||
"""
|
||||
Ran when an event is fired.
|
||||
|
||||
Args:
|
||||
event (pygame.Event): The event that was fired.
|
||||
"""
|
||||
pass
|
||||
|
||||
def update(self):
|
||||
"""
|
||||
Ran once per frame, put your drawing code and any
|
||||
game logic that should be ran once per frame in here.
|
||||
"""
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
"""
|
||||
Ran when the game closes.
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user