1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-10-27 05:27:41 +00:00

Update demo.lua

This commit is contained in:
LDDestroier
2020-01-06 02:53:45 -05:00
committed by GitHub
parent c072a1660c
commit 7df729d49b

View File

@@ -41,11 +41,6 @@ local pBlit = function(t, y, str)
t.blit((" "):rep(#str), str, str)
end
local pWrite = function(t, x, y, str)
t.setCursorPos(x, y)
t.write(str)
end
windont = dofile("windont.lua")
windont.doClearScreen = true
@@ -55,15 +50,21 @@ INSTRUCTIONS = windont.newWindow(2, scr_y - 5, scr_x - 4, 3, {backColor = "-"})
ONE = windont.newWindow(1, 1, 9, 5, {backColor = "e"})
TWO = windont.newWindow(1, 1, 19, 10, {backColor = "-", textColor = "-"})
pWrite(INSTRUCTIONS, 1, 1, "Arrow keys to move windon't ONE (red)")
pWrite(INSTRUCTIONS, 1, 2, "WASD keys to move windon't TWO (blue)")
pWrite(INSTRUCTIONS, 1, 3, "Press 'Q' to quit")
INSTRUCTIONS.setCursorPos(1, 1)
INSTRUCTIONS.write("Arrow keys to move windon't ONE (red)")
INSTRUCTIONS.setCursorPos(1, 2)
INSTRUCTIONS.write("WASD keys to move windon't TWO (blue)")
INSTRUCTIONS.setCursorPos(1, 3)
INSTRUCTIONS.write("Press 'Q' to quit")
ONE.setTextColor(0)
ONE.setBackgroundColor(colors.gray)
pWrite(ONE, 2, 2, " I'm ")
pWrite(ONE, 2, 3, "Stencil")
pWrite(ONE, 2, 4, " Man ")
ONE.setCursorPos(2, 2)
ONE.write(" I'm ")
ONE.setCursorPos(2, 3)
ONE.write("Stencil")
ONE.setCursorPos(2, 4)
ONE.write(" Man ")
TWO.setTextColor(colors.gray)
TWO.setBackgroundColor(colors.green)
@@ -77,6 +78,7 @@ pBlit(TWO, 8, "ddddddddddddddddddd")
pBlit(TWO, 9, "ddddddddddddddddddd")
pBlit(TWO, 10, "ddddddddddddddddddd")
ONE.meta.metaTransformation = TF.meta("e-")
TWO.meta.metaTransformation = TF.meta(
string.rep("5", 50) ..