- I see you have a file called menu.lua.
– This file is not used or loaded.
– This file in turn is responsible for loading ‘level1.lua’, but since you don’t load the menu, the level1.lua file is never loaded, thus any changes you make will never have any effect.
Error: Assumption that you’re even loading the scene.
Error: Incorrect usage of composer
- I see you are loading SSK and initializing it multiple times. This is wrong.
Error: Incorrect usage of SSK
Do this once and only once in main.lua.
Note: I sense you are starting with composer a bit early in the game development. I would suggest you focus on learning to make a game module that can load and destroy levels first. Then, drop that into a composer framework.
By using composer before you’re solid on modules and game logic you are really complicating things for yourself.
This is my opinion, and others may disagree, but to me, more moving parts equal more things to go wrong.