Use Pygame for the new clock api

Registered by James Hancock

class Clock

def __init__(self, fps=some_default_number): #setup the clock in all its glory.

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:
milestone icon 0.2
Started by
James Hancock
Completed by
James Hancock

Related branches

Sprints

Whiteboard

The actual api
consists of

set_speed(fps)
wait_for(event_type)
sleep(duration)

event types include "key_pressed", "mouse_pressed", "next_tick"

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.