gaming-pads/starter.py

40 lines
591 B
Python

import pyray as RL
from pyray import (Rectangle as Rect)
import math
import pdb
import random
from typing import Optional, Tuple, List
from dataclasses import dataclass, field
screen_width = 1280
screen_height = 1024
@dataclass
class World:
pass
def init():
pass
def player_input():
pass
def update():
pass
def draw():
RL.begin_drawing()
RL.clear_background(RL.WHITE)
RL.end_drawing()
RL.init_window(screen_width, screen_height, "Starter");
RL.set_target_fps(60)
init()
while not RL.window_should_close():
player_input()
update()
draw()