From CoderDojo Kata
Jump to: navigation, search



Resource Details

Title How to build a HTML game in 5 lines Part III
Area

Programming

Language HTML
Level Intermediate
Length
Medium Document
Format Wiki
Author

CoderDojo Galway

Summary

Ninjas learn to build their first text-based game using HTML.

Tips for use

You will need to either install Scratch on the Ninja's machine or use the web-based editor in advance of using these cards.

Content

This part is so zen it has no code.

Use phpmyadmin to create tables.... lots of tables. A players table , a weapons table, an objects table. Make sure each table has an auto-incremental unique index. Add stats like Health and Speed and Intelligence for the players and Durability for weapons or objects.

Now spend the next year working out how these variables and fields and objects and arrays interact to create a game.

Use AJax and other javscript techniques to make this statistics based world more dynamic and real-time.


How to build a HTML game in 5 lines- From Galway Dojo #1,1. Credit: Techbot
How to build a HTML game in 5 lines Part II - From Galway Dojo #1,2. Credit: Techbot
How to build a HTML game in 5 lines Part III - From Galway Dojo #1,3. Credit: Techbot