tinygaminggames Posted January 21, 2018 Share Posted January 21, 2018 I came up with this idea for an web application that needs to integrate with a JavaScript game, that's when I came across Phaser. I'm a backend developer by trade but learning JavaScript so any help here will be appreciated. What I'm trying to do: Create a website with ASP.NET and Bootstrap that would allow users to login and manage their profiles. In the member area of the website, you can play this very simple game that I'd like to create using Phaser (hopefully). The actions the user can make in the game will be available depending on the user's "available moves" that are tied to the user's profile. Example - The game will load and gets Billy's information from the session id, Billy has "three moves" that are stored on a SQL DB, to move in the game Billy will hit the "right arrow"(in-game), a HTTP request will check Billy's account to see if he has "available moves", if so, the game will process the request to "move right" and deduct 1 move from Billy's account, if he has no moves, the game will not continue or process the click or touch response. For security reasons I'd like the application server to own the logic of part of the game so that hacking or manipulating of code has to be validated before actions can be made in the game. I hope this makes sense. My question, is Phaser capable of this type implementation? Thank you! Link to comment Share on other sites More sharing options...
mkardas91 Posted January 22, 2018 Share Posted January 22, 2018 "My question, is Phaser capable of this type implementation?" yes, Phaser is good option for You but... "Create a website with ASP.NET[...]stored on a SQL DB[...] a HTTP request will check Billy's account" This is where I see problems. I whould reccomend You to change your backend stack to NodeJs + Mongo database and connect through websocktet. IMO easiest way is meteor https://www.meteor.com Link to comment Share on other sites More sharing options...
Raagh Posted January 22, 2018 Share Posted January 22, 2018 as the guy on top said. I wouldnt create an asp.net application. Node.js and socket io are a good option. If you indeed wanna use asp.net. Go for an asp.net core api with entity framework core connecting to sql server. Create website entirely with html css and javascript( pick a framework of your liking + bootstrap) and consume the api using json. If you still wanna use sockets. you can certainly do sockets with .net and javascript. PS: talking as asp.net core/angular developer by trade. Link to comment Share on other sites More sharing options...
tinygaminggames Posted January 22, 2018 Author Share Posted January 22, 2018 6 hours ago, mkardas91 said: "My question, is Phaser capable of this type implementation?" yes, Phaser is good option for You but... "Create a website with ASP.NET[...]stored on a SQL DB[...] a HTTP request will check Billy's account" This is where I see problems. I whould reccomend You to change your backend stack to NodeJs + Mongo database and connect through websocktet. IMO easiest way is meteor https://www.meteor.com 38 minutes ago, Raagh said: as the guy on top said. I wouldnt create an asp.net application. Node.js and socket io are a good option. If you indeed wanna use asp.net. Go for an asp.net core api with entity framework core connecting to sql server. Create website entirely with html css and javascript( pick a framework of your liking + bootstrap) and consume the api using json. If you still wanna use sockets. you can certainly do sockets with .net and javascript. PS: talking as asp.net core/angular developer by trade. Thank you for your feedback and advice. I will stick with asp.net core, javascript, and socket.io for simplicity reasons with authentication that asp.net helps with. I thought about an API but with a asp.net MVC application, that wouldn't be necessary, correct? Link to comment Share on other sites More sharing options...
Raagh Posted January 22, 2018 Share Posted January 22, 2018 1 hour ago, tinygaminggames said: Thank you for your feedback and advice. I will stick with asp.net core, javascript, and socket.io for simplicity reasons with authentication that asp.net helps with. I thought about an API but with a asp.net MVC application, that wouldn't be necessary, correct? correct it shouldnt be necesary. Still my advice remain the same. Move away from asp.net and switch everything you were planning to core. Its already stable Link to comment Share on other sites More sharing options...
tinygaminggames Posted January 22, 2018 Author Share Posted January 22, 2018 2 hours ago, Raagh said: correct it shouldnt be necesary. Still my advice remain the same. Move away from asp.net and switch everything you were planning to core. Its already stable That's what I meant to say ASP.NET Core. Thanks for the help. I know tech I'll be using now. Raagh 1 Link to comment Share on other sites More sharing options...
Recommended Posts