HowToWriteAdventureGamesUsingArianne: Difference between revisions

Content deleted Content added
imported>J1o1h1n
imported>Hendrik Brummermann
No edit summary
 
(118 intermediate revisions by 3 users not shown)
Line 1:
{{Navigation for Marauroa Top|Using}}
=Howto write Adventures games using arianne=
{{Navigation for Marauroa Users}}
 
 
 
 
'''NOTE:''' This tutorial describes the early steps in creating an adventure game. [[Stendhal]] is now a couple of years old and a lot has happened since then. This document, however, is still an interesting read if you are planning to start your own adventure game.
 
 
 
'''NOTE:''' This tutorial is ''INCOMPLETE'' as we are still completing the game that we are going to use to create this text.
 
=Introduction=
Line 13 ⟶ 20:
* Deployment
 
Arianne is a multiplayer online games framework and engine to develop turn based and real time games. It provides a simple way of creating games on a portable and robust server architecture. Marauroa, the server, is coded in Java and usescan use Java or Python for your game description. It also provides a MySQLSQL backend and uses a UDPTCP transport channel to communicate with dozens ofthe playersclients.
Our reference clients are coded using Java and(C thein Cthe languagepast) in order to achieve maximum portability.
 
The Arianne engine is designed so that you can concentrate on designing the actual game and ignore all the detailed implementation aspects of a complex system, such as those in the multiplayer online game content server. You therefore need not be concerned with issues of Thread, Database and Network handling.
 
Arianne has been in development since 1999 and has evolved from a tiny application written in pseudo-C++ to a powerful, expandable but simple server framework, running on the Java platform, and a client framework, written in bare C to allow total portability of arianne's clients. Arianne's server is totally client agnostic for maximum flexibility.
 
Since the beginning, the key concept at the heart of Arianne's development has been KISS: Keep it simple, stupid!
Line 24 ⟶ 29:
Arianne has always been an Open source project, written and released under the GNU GPL license. We believe the right way is the Open Source way and we want you to have the power to change, edit and configure whatever you want, both in the clients and server. Arianne always welcomes your contributions and modifications to the code to create the best possible open source reference platform for game content providers.
 
All our efforts are supported by Arianne's serverengine: Marauroa. Marauroa is written completely in Java using a multithreaded server architecture with a UDPTCP oriented network protocol, a MySQLSQL based persistence engine and a flexible game system. Marauroa is totally game agnostic and makes very little assumptions about what you are trying to make thus allowing great freedom when creating games. The game system is totally expandable and modifiable to suit your game's needs. It is able to run Python scripts defining the game's rules hence providing a simple way of specifying your games behavior.
 
Marauroa is based on a design philosophy we called Action/Perception. A Perception is a collection of data sent each turn to the clients explaining to them what they currently perceive in the game environment. Actions are sent from clients to the server and are used to ask the server to perform an action for them.
Line 66 ⟶ 71:
A first draft of the game world looks like this:
 
http[[Image://arianne.sourceforge.net/wiki_images/Stendhal_Map.jpg]]
 
 
Line 156 ⟶ 161:
However, this simple system is powerful enough to code nearly all games easily: both real-time and turn based games.
 
http[[Image://arianne.sourceforge.net/wiki_images/PerceptionActionPerception.png]]
 
One of the main issues in the game design is choosing a turn time for the server. It should be based on the type of game we are making. For example, a real time strategy game will need turn times of around 300 ms, while a turn based strategy game will work fine with 1000-1500 ms of turn time. Turn based games save a lot of bandwidth compared to non-turn based however note that the lower the turn time, the higher the bandwidth usage. Also remember that, the lower the turn time, the higher the CPU usage.
Line 167 ⟶ 172:
An RPObject is also built up of Slots. A Slot is a container of objects, much like a pocket, a bag, a box or a hand. The point is that if our objects need to have objects inside them, or attached to them, you need to use Slots.
 
http[[Image://arianne.sourceforge.net/wiki_images/RPObjectER.png]]
 
All the dynamic changes to the world are made using Actions. An RPAction is also made up of attributes. You must redefine the default attributes of the action object so that the action becomes specific to your game.
Line 175 ⟶ 180:
The whole game area will look like:
 
http[[Image://arianne.sourceforge.net/wiki_images/Stendhal_Map.jpg]]
 
It is split into 5 different areas to use the multizones feature of Arianne.<br>
Line 297 ⟶ 302:
 
====Sheep's user case====
Sheep is our key game concept. Sheeps The player must beshepherd growtheir uplambs, toprotecting earnthem moneywolves and buysuch until they are worth stuffselling.
<pre>
Sheep is in Farm
Line 505 ⟶ 510:
 
To set these values we have run a simulation until we have get the right look in the graphs.<br>
[[Image:Rat Fight.gif]]
http://arianne.sourceforge.net/wiki_images/rat.gif
 
====Cave Rat====
Line 515 ⟶ 520:
 
To set these values we have run a simulation until we have get the right look in the graphs.<br>
[[Image:Caverat Fight.gif]]
http://arianne.sourceforge.net/wiki_images/caverat.gif
 
====Wolf====
Line 525 ⟶ 530:
 
To set these values we have run a simulation until we have get the right look in the graphs.<br>
[[Image:Wolf Fight.gif]]
http://arianne.sourceforge.net/wiki_images/wolf.gif
 
=== Experience and levels ===
Line 688 ⟶ 693:
The attack action has the implicit meaning of following the target.
 
=Implementation=
==Server==
===Getting ready===
===Server: Game rules logic===
===Server: Game world implementation===
===Server: Game AI implementation===
==Client==
===Client: Game logic===
===Client: Game presentation===
=Evaluation=
==Download the files from Sourceforge==
Line 703 ⟶ 699:
==Client==
==Server==
 
[[Category:Marauroa]]
{{#breadcrumbs: [[Marauroa]] | [[Navigation for Marauroa Users|Using]] | [[HowToWriteAdventureGamesUsingArianne|How to write games]]}}