fpv/source/main.lua

59 lines
1.0 KiB
Lua
Raw Normal View History

2024-06-01 16:52:11 +03:00
import "CoreLibs/easing"
import "CoreLibs/object"
import "CoreLibs/sprites"
import "CoreLibs/timer"
import "CoreLibs/ui"
-- Libraries
import 'libraries/noble/Noble'
import "libraries/AnimatedSprite"
import "libraries/pdParticles"
import "libraries/playout"
import 'utilities/enum'
import 'utilities/ui'
2024-06-02 20:25:27 +03:00
ZIndex = {
player = 4,
enemy = 3,
props = 3,
fx = 6,
ui = 10,
2024-06-03 00:31:15 +03:00
alert = 12,
ground = 100,
flash = 101
2024-06-02 20:25:27 +03:00
}
CollideGroups = {
player = 1,
enemy = 2,
props = 3,
items = 4,
wall = 5
}
2024-06-01 16:52:11 +03:00
import "scripts/player"
2024-06-02 20:25:27 +03:00
import "scripts/bigBoomSprite"
2024-06-01 16:52:11 +03:00
import "scripts/groundSprite"
import "scripts/balebaSprite"
import "scripts/dangerSprite"
2024-06-01 22:46:36 +03:00
import "scripts/tankSprite"
2024-06-01 16:52:11 +03:00
import "scenes/BaseScene"
import 'scenes/Menu'
import 'scenes/Game'
Noble.Settings.setup({
2024-06-02 20:25:27 +03:00
difficulty = "Medium",
2024-06-01 16:52:11 +03:00
music = true
})
-- Noble.GameData.setup({
-- score = 0
-- })
playdate.display.setRefreshRate(50)
Noble.showFPS = true
2024-06-02 20:25:27 +03:00
Noble.new(Game)