22 Jun
2022
22 Jun
'22
3:19 p.m.
import curses, time, numpy as np ... class Engine: ... def __run(self, window): self.window = window self.__init() self.monotonic_start = time.monotonic() self.time = 0 while True: now = time.monotonic() - self.monotonic_start time_change = now - self.time self.time = now self.update(time_change, self.__update()) maybe it has bugs, maybe it works then i get to implement the scene. it's gonna need debugging.