Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Is this the right engine for me?

computerfreak
Registered User
Quote
2012-09-09 00:20:41

Hello

I have a browsergame since 3 years. So far it is pretty static, not moving stuff inside. It's a tamagotchi game where people can buy animals, they must feed them so that they won't die. After several days they are old enough for breeding with the animals from other users. For earning money they can send their animals away for getting money so that they can buy new food. The user can have premium account which they can buy with Paypal for example.

Our animals are created with poser and like I said, it's pretty static, it all works with tables and small pics:
🔎︎


Now we want to change our game into something more modern. It would be cool if our users could walk through their farm and seeing their animals for example on a meadow how they eat grass. I could imagine that it would be something similar to Harvest Moon for the WII

So far everything is written in PHP and the data are in a MySql Database.

Do you think this is all possible with your copperlicht? Is it possible to use the old PHP Scripts for calculating things and getting access to my database?

My generel main worries are about people are being possible to read the source code and being able to change things for their own goods. Right now they can only see the generated files but don't see how things are calculated. Are there ways to make sure they can't sheat with manipulating the scripts when they are on client side with Javascript? For example: someone wants to buy something in a shop and my script asks in the database if the person has enough money and it returns no. Right now this all is handled on server-side so the games can't sheat but how are things sure when it may change to client side now? I hope you understand what I mean.

have a nice day
Grit


computerfreak
Registered User
Quote
2012-09-09 00:33:32

One more question: Is it possible to add animals to the farm during runtime? For example the farmer buys a sheep then I would need to add a single sheep to the farm. Our sheeps are created with Poser.

Each animal has it's own database entry with it's individual dates like current energy,birthday and so on. Is it possible to add a new individual animal to the scene during runtime and add e.g. an ID to the animal object so I can connect it to the database entry?


niko
Moderator
Quote
2012-09-09 22:31:23

Well, it's JavaScript after all, and since it is running on the client machine, it's reverseable, of course.
Changing the scene during runtime (like adding animals based on your database etc) shouldn't be a problem, I guess. It's completely programmable.


computerfreak
Guest
Quote
2012-09-09 23:44:41

Thank you for the reply. In which file format needs the animal model to be and how can I add it to the scene?


niko
Moderator
Quote
2012-09-10 07:56:28

The format is usually .ccbjs, and you can add it by importing that scene file
engine.load('somefile.ccbjs');

But of course, if you want your own file format, you are free to use that and write a loader for that. Some people on this forum for example posted an .obj loader for free use.


computerfreak
Guest
Quote
2012-09-10 14:25:12

Thank you I will try it :-) Can I add single objects a customer value? For example I have 4 sheeps in the game I would need to add to each sheep the ID which it has in my database so that I can request there the informations about this specific animal later.


niko
Moderator
Quote
2012-09-10 15:55:26

Sure, it's JavaScript. You can add any value to any object at any time. If you have an instance of a scene node referenced by 'foobar' for example, you can do 'foobar.yourSheepValue =42' at any time, and also read it later, if you like.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (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