PHP Classes

RPG Ajax Creator: Create Web based role play games (RPG)

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (57)   DownloadInstall with Composer Download .zip   Reputation   Support forum (9)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 6,231 This week: 1All time: 354 This week: 560Down
Version License Categories
rpg_creator 1.0.0Free for non-comm...Tools, Games, AJAX
Description 

Author

This package can be used to create Web based role play games (RPG).

It is not yet finished but it already implements some important features:

- Map engine: it can display maps with a bi-dimensional perspective that can be browsed interactively using AJAX. The map definition modules are simple easy to create text files.
- Events engine: used to generate events on a given map. The events are defined in a XML file.
- Fight engine: dynamical fight engine using JavaScript objects. Players can hit monsters, be hit, heal, win, or die. It uses a counter to simulate initiative.
- Character classes: There is one character abstract class, one avatar abstract class, one monsters abstract class, and two monster implementation class (goblins and lizards), and one warrior implementation class.

Currently the texts are in French.
PHP >= 5.1.1

Innovation Award
PHP Programming Innovation award nominee
March 2006
Number 3


Prize: One subscription to the PHP Magazine
Role play games (RPG) are very popular world wide, even before the Web days when the many players used to send their playing turn moves by mail to the game master.

The Internet and the Web in particular made it possible to play these games more interactively.

This package goes beyond the possibility to play RPG games on the Web and makes it possible to create them with an interactive AJAX based interface.

Manuel Lemos
Picture of Johan Barbier
Name: Johan Barbier <contact>
Classes: 17 packages by
Country: France France
Age: 52
All time rank: 402 in France France
Week rank: 411 Down15 in France France Down
Innovation award
Innovation award
Nominee: 6x

Details

README MOTEUR DE DEPLACEMENT SUR MAP Tous les commentaires nécessaires sont dans les fichiers correspondants. Pour construire une map, il suffit de la créer dans le répertoire 'maps'. Le principe de construction est simple : chaque case est représentée par le nom de son image (tile). Par exemple : 1 correspondra a 1.ext 'ext' peut-être défini dans l'objet omap, en appelanht la méthode setDisplay () et en lui passanht comme paramètre votre extension. Par exemple : $map -> setDisplay (array ('ext' => 'jpg')); Vos tiles auront alors l'extension .jpg. Ainsi, dans notre exemple, 1 correspondra à 1.jpg. L'ordre des éléments sera l'ordre défini dans le mod: 1234abcd bf7g8hj6 affichera une map de 8 cases de l'ouest à l'est, et 2 cases du nord au sud. La navigation fonctionne sur 8 directions, même si dans l'affichage de la navigation, je n'en ai prévu que 4. Il faut pour l'instant modifier la méthode setNavigation de l'objet omap pour modifier l'affichage de la navigation (et éventuellement ajouter les 4 directions manquantes). Je me suis basé sur un pavé numérique pour représenter les directions. Donc 2 correspond au nord. Pour ajouter le nord est par exemple, utilisez la valeur 9. Pour les fichiers XML des évènements, conserver la même structure : <events> est l'élément racine Un évènement est une chaine, donc l'élément commence par 'e' et est suivi des coordonnées x et y de l'évènements. Exemple : <ex0y0> chaine </ex0y0> => cet évènement se placera en x = 0 et y = 0. REPERTOIRES : class/ contient les fichiers de classes maps/ contient les modules de map nav/ contient les images pour la navigation tiles/ contient les images pour les 'tiles' char/ contient les images pour les personnages events/ contient les fichiers XML des évènements

Screenshots  
  • screenshot.jpg
  Files folder image Files  
File Role Description
Files folder imagechar (3 files)
Files folder imageclass (10 files)
Files folder imagecss (1 file)
Files folder imageevents (1 file)
Files folder imageglobal (1 file)
Files folder imagemaps (2 files)
Files folder imagenav (4 files)
Files folder imagetiles (30 files)
Plain text file death.php Example Example death page
Plain text file fight.php Appl. Fight engine
Plain text file index.php Example Example index page
Accessible without login Plain text file map.php Example Map index page
Plain text file readme_fr.txt Doc. Readme French

  Files folder image Files  /  char  
File Role Description
  Image file char.gif Data Character image
  Image file char2.gif Data Character image
  Image file char3.gif Data Character image

  Files folder image Files  /  class  
File Role Description
  Plain text file oajax.cls.php Class Ajax class
  Plain text file oavatar.cls.php Class Avatar abstract class
  Plain text file ocharacter.cls.php Class character abstract class
  Plain text file oevents.cls.php Class Events class
  Plain text file ogoblin.cls.php Class Goblin class
  Plain text file olizard.cls.php Class Lizard class
  Plain text file omap.cls.php Class Map class
  Plain text file ostreum.cls.php Class monsters abstract class
  Plain text file owarrior.cls.php Class warrior class
  Accessible without login Plain text file xmlserialize.cls.php Class Objects to XML Serializer/Unserializer class

  Files folder image Files  /  css  
File Role Description
  Plain text file main.css Data css file

  Files folder image Files  /  events  
File Role Description
  Plain text file events.xml Data Eevnts xml feed

  Files folder image Files  /  global  
File Role Description
  Plain text file inc.main.php Conf. main inc file

  Files folder image Files  /  maps  
File Role Description
  Plain text file map2.mod Data Map definition file
  Plain text file map3.mod Data Map definition file

  Files folder image Files  /  nav  
File Role Description
  Image file down.png Data Navigation image
  Image file left.png Data Navigation image
  Image file right.png Data Navigation image
  Image file up.png Data Navigation image

  Files folder image Files  /  tiles  
File Role Description
  Image file 1.png Data Map tile
  Image file 1.psg Data Map tile
  Image file 2.png Data Map tile
  Image file 3.png Data Map tile
  Image file 4.png Data Map tile
  Image file a.png Data Map tile
  Image file b.png Data Map tile
  Image file blank.png Data Map tile
  Image file c.png Data Map tile
  Image file d.png Data Map tile
  Image file e.png Data Map tile
  Image file f.png Data Map tile
  Image file g.png Data Map tile
  Image file h.png Data Map tile
  Image file i.png Data Map tile
  Image file j.png Data Map tile
  Image file k.png Data Map tile
  Image file l.png Data Map tile
  Image file m.png Data Map tile
  Image file n.png Data Map tile
  Image file o.png Data Map tile
  Image file p.png Data Map tile
  Image file q.png Data Map tile
  Image file r.png Data Map tile
  Image file s.png Data tile image
  Image file t.png Data Map tile
  Image file u.png Data Map tile
  Image file v.png Data Map tile
  Image file w.png Data Map tile
  Image file x.png Data Map tile

 Version Control Unique User Downloads Download Rankings  
 0%
Total:6,231
This week:1
All time:354
This week:560Down
 User Ratings  
 
 All time
Utility:85%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:67%StarStarStarStar
Examples:82%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:563