Initial commit: Star Explorer Solar2D Game

This commit is contained in:
atseirjo
2026-05-22 09:16:59 +02:00
commit 5ab78b4c20
62 changed files with 1258 additions and 0 deletions

25
main.lua Normal file
View File

@@ -0,0 +1,25 @@
-- Copyright (c) 2017 Corona Labs Inc.
-- Code is MIT licensed and can be re-used; see https://www.coronalabs.com/links/code/license
-- Other assets are licensed by their creators:
-- Art assets by Kenney: http://kenney.nl/assets
-- Music and sound effect assets by Eric Matyas: http://www.soundimage.org
print("main.lua file accessed")
local composer = require("composer")
-- Hide status bar
display.setStatusBar(display.HiddenStatusBar)
-- Seed the random number generator
math.randomseed(os.time())
-- Reserve channel 1 for background music
audio.reserveChannels(1)
-- Reduce the overall volume of the channel
audio.setVolume(0.5, { channel = 1 })
-- Go to the menu screen
composer.gotoScene("menu")