glitchapp
The biggest issue the game currently have has to do with scaling. I managed to make the screen scale properly when you resize the game's windows, but the start size of backgrounds and objects is predefined on this file at the function assignremakesize() which is simply a work around till I find the right formula to calculate it automatically. Since this is a mathematical problem and lua is not so different from godot script, any help to achieve this is welcome. There are variables that store the windows width and height and the size of the maze:
self.gridWidth = level.w
self.gridHeight = level.h
self.gridSize = (math.min(width/(level.w), height/(level.h)))
tileSize = self.gridSize
gridSize=self.gridSize
The variables that store the windows size are:
local desktopWidth, desktopHeight = love.window.getDesktopDimensions()
I need to make a formula that take those values and initialize the level with proper scaling.
The predefined values in 1440p and 4k works quite well for now, if you have issue on 1080p you can switch to retro mode by pressing the key 12 and in that mode the game scales properly on any resolution.
This problem and some possible solutions will be discussed here
Another important think I want to share is that I want to unify the Vr and the 2d game. I'm collecting 3d assets and attempting to do the whole game in 3d. Right now is double work because there are 2 engines, the underlying language is the same but the frameworks have different apis so it's like maintaining 2 games. I'm considering porting the game to godot so that the two games can be unified and fused into just 1 and that's very possible in godot so anyone interested to collaborate and with knowledge adding vr capabilities to a game could collaborate in this project.
Update: I started designing the level selection menu in godot, since I'm learning and never worked with nodes in godot I'm not sure how to make it render to the canvas, I followed some guidelines and created a structure for button handling here and a layout here.
Not sure if everything is correct so feel free to download the repository and check it. Thanks!