Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I've downloaded the copperlicht software and I've been playing around with the coppercube to load some meshed in to a scene with animation, so far so good. Before I go any further I wanted to know if the following is possible. I would like to make a small multiplayer game, not a MMOPG just one or two other players in the same game at the same time. Movement does not need to by real time as game is turn based. Is it possible to get information from a database like a sql database and load/save this information for use in the game? Here is the outline of how I envision this working with copperlicht: 1.Player logs in to web site, clicks to join a game 2. Player's last location is loaded from sql db, as is name, stats, and other inventory like info. 3. When the player moves in to a new area I want thier new location to be updated in the database. 4. Other players who are logged on would see the player's avatar in this position when they are also playing the game. 5. Every time the player does anything the game would check the db for updated movements and so forth, and then do the player's requested action. Is it possible to do this with copperlicht? |
||||
|
That doesn't have to do anything with CopperLicht, you only need to do Ajax calls to PHP pages connecting to your SQL server. Nothing special. Or you could even try and use WebSockets, but they are quite new. But all in all: Yes, absolutely doable. |
|