Compare commits
4 Commits
feature/gl
...
5a0c8ef19d
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a0c8ef19d | |||
| 1c25a077a5 | |||
| fd983dd6e1 | |||
| 220ca27128 |
@@ -5,6 +5,7 @@ globals = {
|
|||||||
"Focus",
|
"Focus",
|
||||||
"Day",
|
"Day",
|
||||||
"Timer",
|
"Timer",
|
||||||
|
"Glitch",
|
||||||
"Trigger",
|
"Trigger",
|
||||||
"Util",
|
"Util",
|
||||||
"Decision",
|
"Decision",
|
||||||
@@ -31,6 +32,7 @@ globals = {
|
|||||||
"MinigameRhythmWindow",
|
"MinigameRhythmWindow",
|
||||||
"MinigameDDRWindow",
|
"MinigameDDRWindow",
|
||||||
"MysteriousManWindow",
|
"MysteriousManWindow",
|
||||||
|
"EndWindow",
|
||||||
"mset",
|
"mset",
|
||||||
"mget",
|
"mget",
|
||||||
"btnp",
|
"btnp",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
--- @section Glitch
|
||||||
Glitch = {}
|
Glitch = {}
|
||||||
|
|
||||||
--- Shows the glitch effect.
|
--- Shows the glitch effect.
|
||||||
@@ -35,16 +36,16 @@ function Glitch.draw()
|
|||||||
|
|
||||||
-- Draw stripes only when active
|
-- Draw stripes only when active
|
||||||
if Context.glitch.state == "active" then
|
if Context.glitch.state == "active" then
|
||||||
for i = 1, 15 do
|
for _ = 1, 15 do
|
||||||
local rx = math.random(0, Config.screen.width - 1)
|
local rx = math.random(0, Config.screen.width - 1)
|
||||||
local ry = math.random(0, Config.screen.height - 1)
|
local ry = math.random(0, Config.screen.height - 1)
|
||||||
|
|
||||||
-- Sample color at the random point
|
-- Sample color at the random point
|
||||||
local color = pix(rx, ry)
|
local color = pix(rx, ry)
|
||||||
|
|
||||||
-- Determine random length for the stripe (2-40)
|
-- Determine random length for the stripe (2-40)
|
||||||
local length = math.random(2, 40)
|
local length = math.random(2, 40)
|
||||||
|
|
||||||
-- Draw the vertical stripe
|
-- Draw the vertical stripe
|
||||||
for sy = 0, length - 1 do
|
for sy = 0, length - 1 do
|
||||||
local dy = ry + sy
|
local dy = ry + sy
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
-- title: Definitely not an Impostor
|
-- title: Definitely not an Impostor
|
||||||
-- name: impostor
|
-- name: impostor
|
||||||
-- author: Teletype Games
|
-- author: Teletype Games
|
||||||
-- desc: Life of a programmer in the Vector
|
-- desc: Life of a programmer
|
||||||
-- site: https://git.teletype.hu/games/impostor
|
-- site: https://git.teletype.hu/games/impostor
|
||||||
-- license: MIT License
|
-- license: MIT License
|
||||||
-- version: 0.1
|
-- version: 0.8
|
||||||
-- script: lua
|
-- script: lua
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
--- @section EndWindow
|
||||||
|
|
||||||
--- Draws the end screen window.
|
--- Draws the end screen window.
|
||||||
--- @within EndWindow
|
--- @within EndWindow
|
||||||
function EndWindow.draw()
|
function EndWindow.draw()
|
||||||
|
|||||||
Reference in New Issue
Block a user