Hey guys wasn’t to sure where to post this but I wanted to share my progress with you since this a open source multi platform gaming application
Here is the main menu
which as you can see shows the category menu, a news feed with different filter options to show all news or specific category news like news on games from developers that I have also contacted and helped out and a new games slideshow that can click on to go straight into the game.
At the bottom I have a chat button that open up a experimental discord Gamer World chat which will connect to your discord when you login and go to the gamer World channel and be able to close and open any time even if your in the middle of a game.
Gamer World is a slim application with uncapped performance unlike running the game in a browser as well as support for dual GPU support for anyone who uses dual GPU’s in there PC.
While I need to get more games, developers and gamer’s interested into Gamer World I also need to figure out the best way to have the application seamlessly and easily update multi platform wise other than the web interface being updated seamlessly for everyone I need to fix some minor bugs and fix some rough edges. One bug that had randomly appeared upon (I assume a electron update) has got me stumped is this weird bug in my code that only seems to affect the Windows version for some unknown reason giving me this js error window.
I tired asking for help on atoms discussion page which is where I was told to move my issue to via github but got on answer but I did find where the issue is but don’t know why or how to fix it…
On line 30:50 of my code path.join seems to be the issue which is part of the code that loads the flash plugin for any legacy flash games, taking it out stops the plugin being loaded on startup and fixes the issue on Windows but keeping it in doesn’t effect the Linux version and all works fine for a unknown reason.
Here is my code:
const {app, BrowserWindow} = require('electron');
const path = require('path')
var win
// Quit when all windows are closed.
app.on('window-all-closed', function() {
if (process.platform != 'darwin')
app.quit()
})
// Specify flash path, supposing it is placed in the same directory with main.js.
let pluginName
switch (process.platform) {
case 'win':
pluginName = 'pepflashplayer.dll'
break
case 'darwin':
pluginName = 'PepperFlashPlayer.plugin'
break
case 'linux':
pluginName = 'libpepflashplayer.so'
break
}
//Disables VSync
app.commandLine.appendSwitch('disable-gpu-vsync')
//Dual GPU Support
app.commandLine.appendSwitch('supports-dual-gpu=true')
app.commandLine.appendSwitch('ppapi-flash-path', path.join(__dirname, pluginName))
// Optional: Specify flash version, for example, v17.0.0.169
app.commandLine.appendSwitch('ppapi-flash-version', '21.0.0.151')
app.on('ready', () => {
let win = new BrowserWindow({
width: 1350,
height: 900,
icon: __dirname + '/icon.png',
webPreferences: {
plugins: true,
nodeIntegration: false
}
})
win.loadURL('file://' + __dirname + '/index.html') // Load splash screen
setTimeout(function () {
win.loadURL('http://examplewebsite.com')
}, 3000) // Load store page after 3 secs
win.webContents.on('will-navigate', ev => {
ev.preventDefault()
})
// Emitted when the window is closed.
win.on('closed', function() {
// Remove mainWindow.on('closed', function() { if you want the menu back
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null;
})
})
If anyone knows anything that could help out or want to help development of Gamer World or even a web developer for game let me know, I can help you out
I hope you guys like the progress I have done and are interested in a more seamless gaming application that focuses on gamer’s while not putting any platform in the “can’t be support or wont run as well BS” having everyone on the fair situation of use regardless of OS in use with a application and games that don’t need to be installed and work out of the box and wont need any dependencies or anything extra installed!