Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Client Server networking?

binxalot
Registered User
Quote
2011-03-26 18:02:23

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?


erik
Registered User
Quote
2011-03-26 19:42:44

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact