Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions static/js/languages/microscript/v2/runner.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ class @Runner
processor.run(@microvm.context)

tick:()->
# Reset input states at the beginning of every frame
if @updateControls?
@updateControls()

if @system.fps?
@fps = @fps*.9 + @system.fps*.1

Expand Down Expand Up @@ -277,8 +281,6 @@ class @Thread
program = parser.program
compiler = new Compiler(program)
@processor.load compiler.routine
if (f == "update()" or f == "serverUpdate()") and @runner.updateControls?
@runner.updateControls()
true
else
false
Expand Down
Loading