This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
layarmmo-monsters [2012/05/11 08:21]
matthewleach created
layarmmo-monsters [2012/11/09 13:03]
matthewleach quick structuring.
Line 1: Line 1:
-== Loading Monsters From the Database ==+==== Loading Monsters From the Database ==== 
 +It's time to add our monsters to the real-world. ​ We are going to make some significant changes to the code that we already have, so that so that the games searches for and displays any monsters within range of the player.
-Changes to simple-display.php.  ​In the include:+===Changes to Main File=== 
 +In our main file we are going to add another ​include ​statement.
 <code php> <code php>
Line 30: Line 32:
 </​code>​ </​code>​
 +===Process for Loading Monsters===
 The process: The process:
Line 40: Line 43:
 </​code>​ </​code>​
 +===Code for Loading Monsters===
 The actual code: The actual code:
Line 105: Line 109:
 ?> ?>
 </​code>​ </​code>​
 +===Explanation of Code===
 Explanation - particularly on the distance query. Explanation - particularly on the distance query.