im making a website using node js and sockets where players can play against each other in a simple canvas game.
So on the homepage, 2 players match which then makes a new object in the Games[] array located on the server which stores every detail about that game, lets say its checkers, it stores every position of each checker so the game can be recreated and stored eaisily.
I want to be able to generate a webpage for example mysite/game/623 which would simulate the 623rd game created. It would look back in the array and load up game 623 for any spectators so they could type in that url and it would go there.
i also want features like chat etc which i can do but would i need a html template for this? The generated webpage has to be able to send and recive data back and forth to the server but i cant wrap my head around how i would do this.
I wasnt looking to use any external librarys either. Im happy to use php if that would be eaiser but i figured if i can do it with node js i might aswell, thinking about it i can already visualise how i could do it with php so any advice, links to tutorials or any videos that give me an insight would be great. i couldnt find what i was looking for an thought i might have been searching for the wrong thing.
thanks :)
via Slavik Ribz
No comments:
Post a Comment