From 3a1f20f830431fa01645ff178535fea1b59005a7 Mon Sep 17 00:00:00 2001 From: Pawel Paradysz Date: Sun, 18 Jun 2023 15:46:07 +0200 Subject: [PATCH] add revise --- Project.toml | 1 + src/GameZero.jl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 4290a26..ba2637c 100644 --- a/Project.toml +++ b/Project.toml @@ -6,6 +6,7 @@ version = "0.3.2" [deps] Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +Revise = "295af30f-e4ad-537b-8983-00126c2a3abe" SimpleDirectMediaLayer = "98e33af6-2ee5-5afd-9e75-cbc738b767c4" [compat] diff --git a/src/GameZero.jl b/src/GameZero.jl index 0402c56..0693a69 100644 --- a/src/GameZero.jl +++ b/src/GameZero.jl @@ -1,6 +1,7 @@ module GameZero using Colors using Random +using Revise export Actor, TextActor, Game, game, draw, scheduler, schedule_once, schedule_interval, schedule_unique, unschedule, collide, angle, distance, play_music, play_sound, line, clear, rungame, game_include @@ -121,6 +122,7 @@ function mainloop(g::Game) if (playing[] == false) throw(QuitException()) end + Revise.revise() end end @@ -229,7 +231,7 @@ function initgame(jlf::String, external::Bool) Base.include_string(g.game_module, "using GameZero") Base.include_string(g.game_module, "import GameZero.draw") Base.include_string(g.game_module, "using Colors") - Base.include(g.game_module, jlf) + Revise.includet(g.game_module, jlf) end g.update_function = getfn(g.game_module, :update, 2)