Use Pygame for the new clock api
Registered by
James Hancock
class Clock
def __init__(self, fps=some_
def start(): #don’t know if I need this… but I have a feeling I do
def set_speed(self, fps): #set the fps
def tick(): #one tick has passed
def wait(): #pygame waits until…
def resume(): #resumed is called.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- James Hancock
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- 0.2
- Started by
- James Hancock
- Completed by
- James Hancock
Related branches
Related bugs
Sprints
Whiteboard
The actual api
consists of
set_speed(fps)
wait_for(
sleep(duration)
event types include "key_pressed", "mouse_pressed", "next_tick"
(?)
Work Items
Dependency tree
* Blueprints in grey have been implemented.