# HG changeset patch # User Sam # Date 1684833855 -25200 # Node ID 3b00747b24516798e8f494943475be0963c6d871 # Parent 3bb199dd45ba950e49ce56e7409f97df9cfc6891 did: few fixes diff -r 3bb199dd45ba -r 3b00747b2451 config.nims --- a/config.nims Tue May 23 01:05:06 2023 +0700 +++ b/config.nims Tue May 23 16:24:15 2023 +0700 @@ -70,14 +70,14 @@ exec(&"rm -rf {BUILDBASE}") task publish, "publish all build": - for file in listFiles("build/debug/linux"): - exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/") + for file in listDirs("build/debug/linux"): + exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/") for file in listFiles("build/release/linux"): - exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/") + exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/") for file in listFiles("build/debug/windows"): - exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/") + exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/") for file in listFiles("build/release/windows"): - exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/") + exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/") task glslangValidator, "Download glslangValidator (required for linux compilation)": let dirname = "/tmp/glslang_download" diff -r 3bb199dd45ba -r 3b00747b2451 examples/E10_pong.nim --- a/examples/E10_pong.nim Tue May 23 01:05:06 2023 +0700 +++ b/examples/E10_pong.nim Tue May 23 16:24:15 2023 +0700 @@ -83,7 +83,7 @@ winsize = myengine.getWindow().size height = float32(winsize[1]) / float32(winsize[0]) width = 1'f - setShaderGlobal(level, "projection", ortho[float32](0'f, width, 0'f, height, 0'f, 1'f)) + setShaderGlobal(level, "projection", ortho(0, width, 0, height, 0, 1)) var player = level.root.firstWithName("player") if myengine.keyIsDown(Down) and (player.transform.col(3).y + barSize/2) < height: player.transform = player.transform * translate3d(0'f, 1'f * dt, 0'f)