Just start the script. It will be added automaticly to your appstore!
Config:
Config = {}
----------- App Settings -------
Config.AppName = "Games"
-- Displayed Name for OS & AppStore
Config.Description = "Play Games"
-- Displayed Description for AppStore
Config.DefaultApp = false
-- 'true' sets App Pre-Installed, 'false' requires download via AppStore
Config.Size = 52812
-- Sets App Size for Storage Usage from Phone
Config.Images = {}
-- Displayed Images in AppStore,
-- Usage: {"https://link.com/example.png", "https://link.com/example2.png"}
How to add new games:
(some basic dev-knowledge required)
First of all fork our newest branch of the games app from our github.
For app version > v1.1.1 (newest)
coming soon
For app version < v1.1.1 (old)
Then you can add the game you want into /html/games/yourgamename/*
Here you can place all gamedata needed like assets for the game itself and the required banner and logo of the game. You are free to use png, jpeg or webp, whatever you need.
After adding your game to the folder make sure it will be framed right. Otherwise you will need an iframe like the following:
// You can ignore this file. All it does is make the UI work on your browser.
window.addEventListener("load", () => {
if (window.invokeNative) {
const phoneWrapper = document.getElementById("phone-wrapper");
const app = phoneWrapper.querySelector(".app");
phoneWrapper.parentNode.insertBefore(app, phoneWrapper);
phoneWrapper.parentNode.removeChild(phoneWrapper);
return;
}
document.getElementById("phone-wrapper").style.display = "block";
document.body.style.visibility = "visible";
const center = () => document.getElementById("phone-wrapper").style.scale = window.innerWidth / 1920;
center();
window.addEventListener("resize", center);
});
Last but not least you need to display the app in the games tab. (html/index.html)
You will need to add the following code after line 97, like the lines before.
Thats it!
Feel free to constribute and make a pull-request so we can benefit as a community on the game.
Let's make gaming on the LB-Phone great again!