fpv/source/main.lua
2024-06-04 21:21:40 +03:00

63 lines
1.1 KiB
Lua

import "CoreLibs/easing"
import "CoreLibs/object"
import "CoreLibs/sprites"
import "CoreLibs/timer"
import "CoreLibs/ui"
import "CoreLibs/math"
-- Libraries
import 'libraries/noble/Noble'
import "libraries/AnimatedSprite"
import "libraries/pdParticles"
import "libraries/playout"
import 'utilities/enum'
import 'utilities/ui'
ZIndex = {
player = 4,
enemy = 3,
props = 3,
fx = 6,
ui = 10,
alert = 12,
ground = 100,
flash = 101
}
CollideGroups = {
player = 1,
enemy = 2,
props = 3,
items = 4,
wall = 5
}
import "scripts/player"
import "scripts/bigBoomSprite"
import "scripts/groundSprite"
import "scripts/balebaSprite"
import "scripts/dangerSprite"
import "scripts/tankSprite"
import "scripts/progressBar"
import "scenes/BaseScene"
import 'scenes/Menu'
import 'scenes/Game'
import 'scenes/Assemble'
Noble.Settings.setup({
difficulty = "Medium",
music = true
})
-- Noble.GameData.setup({
-- score = 0
-- })
playdate.display.setRefreshRate(50)
Noble.showFPS = true
Noble.new(Assemble)