1 / 10

Welcome to Sunnydale

Welcome to Sunnydale. a web game with multimedia elements Austin Lee. Multimedia files are large. Loading methods JavaScript HTML frames + scripting ActiveX (IE on Windows only!) Java Macromedia Flash. Technologies Used. PHP 5 mySQL 4.x GD 2.x XHTML 1.0 Transitional XML 1.0

nishi
Download Presentation

Welcome to Sunnydale

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Welcome to Sunnydale a web game with multimedia elements Austin Lee

  2. Multimedia files are large • Loading methods • JavaScript • HTML frames + scripting • ActiveX (IE on Windows only!) • Java • Macromedia Flash

  3. Technologies Used • PHP 5 • mySQL 4.x • GD 2.x • XHTML 1.0 Transitional • XML 1.0 • JavaScript

  4. Database • Only search-related data is stored • Locations table • name • x,y,z position • map skill level (visibility) • Users table • id, name, and password • email, creation date, descriptions • Frequently changing data or highly configurable data is stored in XML files, not the database

  5. Game File Tree

  6. Player Data <?xml version='1.0' ?> <player> <name>Scare Trolfey</name> <racefile>Human</racefile> <tslast>1145659370</tslast> <location> <x>0</x> <y>0</y> <z>0</z> </location> <exp>0</exp> <money>10</money> <alignment>0</alignment> <hp>100</hp> <hpmax>100</hpmax> <mp>0</mp> <mpmax>0</mpmax> <tp>50</tp> <tpmax>50</tpmax> <tpfrac>0</tpfrac> <att>20</att> <def>20</def> <matt>0</matt> <mdef>0</mdef> <acc>10</acc> <ev>20</ev> </player>

  7. Game.php (main game page) • Check session for login key • Read player data from file • Run Regen rules • Run Movement rules • Check if location is registered in DB • Run event rules • Set timestamp to now • Write player data to file • Display UI and result(s) of actions

  8. PHP and GD • Allows images to be created with programming • Image script files can be called like:<img src=“media/images/status.php?hp=100&hpmax=100&tp=30&tpmax=50” />

  9. Future updates • Completion of core game • Interactive GUI • Races • Skills • Combat • Items • Multiplayer interaction • Interactive combat(Flash based?) • Total conversion to Flash

  10. Demonstration http://www.lucidmist.com/sunnydale/ http://www2.lucidmist.com:8080/sunnydale/ http://www2.lucidmist.com:5190/sunnydale/

More Related