diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Jin.exe | bin | 2499584 -> 2265600 bytes | |||
-rw-r--r-- | bin/SDL2.dll | bin | 1279488 -> 1242112 bytes | |||
-rw-r--r-- | bin/game/main.lua | 8 | ||||
-rw-r--r-- | bin/jin.exe | bin | 2499584 -> 2265600 bytes |
4 files changed, 5 insertions, 3 deletions
diff --git a/bin/Jin.exe b/bin/Jin.exe Binary files differindex 0645634..7009d01 100644 --- a/bin/Jin.exe +++ b/bin/Jin.exe diff --git a/bin/SDL2.dll b/bin/SDL2.dll Binary files differindex dfc7d55..c381d42 100644 --- a/bin/SDL2.dll +++ b/bin/SDL2.dll diff --git a/bin/game/main.lua b/bin/game/main.lua index ce22f46..ca260d7 100644 --- a/bin/game/main.lua +++ b/bin/game/main.lua @@ -24,6 +24,8 @@ Vertex vert(Vertex v) #FRAGMENT_SHADER Color frag(Color col, Texture tex, Vertex v) { + if(v.xy.x > 30) + return Color(1, 0, 0, 1); Color c = texel(tex, v.uv); return c; } @@ -40,7 +42,7 @@ local spr = nil local bitmap = nil function jin.core.onLoad() bitmap = jin.graphics.newBitmap(128, 128, function(w, h, x, y) - return {255*math.sin(x/w),255 - 255*math.cos(y/w),0,255} + return {255*math.sin(x/w),255 - 255,255*math.cos(y/w),255} end) shader_program = jin.graphics.newShader(shader) shader_program2 = jin.graphics.newShader(shader2) @@ -69,8 +71,8 @@ function jin.core.onLoad() --timer:cancel(h) end, h) jin.graphics.pushMatrix() - --jin.graphics.translate(100, 0) - jin.graphics.rotate(0.2) + jin.graphics.translate(10, 0) + --jin.graphics.rotate(0.2) end local stop = false diff --git a/bin/jin.exe b/bin/jin.exe Binary files differindex 0645634..7009d01 100644 --- a/bin/jin.exe +++ b/bin/jin.exe |