New account registrations are disabed. This website is now an archive. Read more here.
GDU Staff

MMO Project: Player authentication

This project is going slow, and I'll most likely work on it when I'm bored or just wana jam by writing some code. Game dev is okay, but mixing it with web development makes it interesting *1-smile*

 

This evening I wrote the player authentication system and chose the front-end UI system it will use (for stuff like dialogues and styles out side of the game but on the page… y'know, beside the game in the browser).

 

For this system, it'll integrate perfectly into GDU. Some time ago I figured out how to really miss with the forums user system… which is the cornerstone of the GDU system, really. While I develop this, I have half a mind on making it available for people to use as a plugin. A very complex plugin that would need me to set up on another server/system. It may seem like integrating with GDU excludes any possibility of that, but that's not the case. It would need some configuration, but for others to use the system you simply need to obtain a few user variables and send them to the right place *1-smile*

 

How it works
When you log into GDU it creates a cookie and a session var on the server. Since the game is to run on this server… basically all I do is read those variables from the game itself. I can then take variables from the server, such as usernames and avatar paths, and give them to the game in javascript to use. So to use this game, all you need is a GDU account and if you're signed into GDU… guess what… you're signed into the game! If you simply head over to the URL, you'll get this:
Posted Image

 

Otherwise, you'll get a login forum which links back to the site. If you hit login, you get redirected to the website's login form which'll redirect you back to the game.
Posted Image

 

Of course that's the easy part. The next step is real-time player interaction with web sockets!

Leave a Reply

Marked

  • Posted January 30, 2016

Stats

293 views

0 comments

Tags

No tags.