Skip to content

Commit

Permalink
is web false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyjor committed Feb 15, 2025
1 parent 07f39c1 commit 8259eab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/JulGame.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module JulGame
using SimpleDirectMediaLayer
const SDL2 = SimpleDirectMediaLayer
MAIN = nothing
IS_WEB = true
IS_WEB = false
IS_EDITOR::Bool = false
IS_DEBUG::Bool = false
IS_PACKAGE_COMPILED::Bool = false
Expand Down
4 changes: 2 additions & 2 deletions src/engine/SceneManagement/SceneBuilder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module SceneBuilderModule

MAIN.screenSize = size

if !JulGame.IS_EDITOR && this.type != "Web"
if !JulGame.IS_EDITOR && !JulGame.IS_WEB
MAIN.window = SDL2.SDL_CreateWindow(MAIN.windowName, SDL2.SDL_WINDOWPOS_CENTERED, SDL2.SDL_WINDOWPOS_CENTERED, MAIN.screenSize.x, MAIN.screenSize.y, flags)
JulGame.Renderer::Ptr{SDL2.SDL_Renderer} = SDL2.SDL_CreateRenderer(MAIN.window, -1, SDL2.SDL_RENDERER_ACCELERATED)
end
Expand All @@ -82,7 +82,7 @@ module SceneBuilderModule
if size.y < MAIN.scene.camera.size.y && size.y > 0
MAIN.scene.camera.size = Vector2(MAIN.scene.camera.size.x, size.y)
end
if !JulGame.IS_EDITOR && this.type != "Web"
if !JulGame.IS_EDITOR && !JulGame.IS_WEB
SDL2.SDL_RenderSetLogicalSize(JulGame.Renderer, MAIN.scene.camera.size.x, MAIN.scene.camera.size.y)
end

Expand Down

0 comments on commit 8259eab

Please sign in to comment.