Browse Source

idk!

master
Nicholas Hayashi 3 years ago
parent
commit
c2f517d667
  1. 1
      color.lua
  2. 1
      main.lua
  3. 1
      sound.lua
  4. 3
      src/game.lua
  5. 1
      src/geometry.lua
  6. 1
      src/grid.lua
  7. 1
      src/gui.lua
  8. 1
      src/hexyz.lua
  9. 1
      src/mob.lua
  10. 1
      src/projectile.lua
  11. 1
      src/tower.lua
  12. 1
      texture.lua

1
color.lua

@ -1,5 +1,4 @@
COLORS = {
TRANSPARENT = vec4(0.6),
TRANSPARENT1 = vec4(0.4),

1
main.lua

@ -1,5 +1,4 @@
-- @TODO @TODO @TODO @TODO @TODO
-- settings menu
-- -- music volume

1
sound.lua

@ -1,5 +1,4 @@
SOUNDS = {
-- sfxr_synth seeds
EXPLOSION1 = 49179102, -- this slowed sounds metal as fuck

3
src/game.lua

@ -1,9 +1,7 @@
game = false -- flag to tell if there is a game running
state = {}
-- top right display types
local TRDTS = {
NOTHING = 0,
@ -228,7 +226,6 @@ local function game_action(scene)
-- calculate spawn chance for next wave
state.spawn_chance = math.log(state.current_wave)/100 + 0.002
log(state.spawn_chance)
state.time_until_next_break = get_wave_time(state.current_wave)
end

1
src/geometry.lua

@ -1,5 +1,4 @@
function circles_intersect(center1, center2, radius1, radius2)
local c1, c2, r1, r2 = center1, center2, radius1, radius2
local d = math.distance(center1, center2)

1
src/grid.lua

@ -1,5 +1,4 @@
do
-- add padding, because we terraform the very outer edge and it looks ugly, so hide it
local padding = 2

1
src/gui.lua

@ -1,5 +1,4 @@
function gui_numberfield(dimensions, opts)
end

1
src/hexyz.lua

@ -1,5 +1,4 @@
-- this is a single file with no dependencies which is meant to perform a bunch of mathy stuff
-- related to hexagons, grids of them, and pathfinding on them
--

1
src/mob.lua

@ -1,5 +1,4 @@
state.mobs = {}
MOB_TYPE = {

1
src/projectile.lua

@ -1,5 +1,4 @@
state.projectiles = {}
PROJECTILE_TYPE = {

1
src/tower.lua

@ -1,5 +1,4 @@
state.towers = {}
TOWER_TYPE = {

1
texture.lua

@ -1,5 +1,4 @@
local function load_texture(filepath)
local status, texture = pcall(am.texture2d, filepath)

Loading…
Cancel
Save