Game Development Reference
In-Depth Information
When the game specification is finished, you can start the implementation phase, which generally
means going through the edit-interpret-run cycle a couple of times. After that, you can let other people
play your game. In many cases, you'll realize that some ideas in the game design don't work that well.
So, you begin again by changing the design, followed by changing the specification and finally doing
a new implementation. You let other people play your game again, and then … well, you get the idea.
The edit-interpret-run cycle is contained in a larger-scale cycle: the design-specify-implement cycle
(see Figure 1-1 ). Although this topic focuses mainly on the implementation phase, you can read a little
bit more about designing games in Chapter 30.
Building Your First Web Application
In this section, you build a few very simple example applications using JavaScript. Earlier in the
chapter, you saw a basic HTML page:
<!DOCTYPE html>
<html>
<head>
<title>Useful website</title>
</head>
<body>
This is a very useful website.
</body>
</html>
Open a text-editing program such as Notepad, and copy-paste this text into it. Save the file as
something with a .html extension. Then double-click that file to open it in a browser. You see
an almost empty HTML page, as shown in Figure 1-2 . In HTML, tags are used to structure the
information in the document. You can recognize these tags because they're placed between angle
brackets. Each different type of content is placed between such tags. You can distinguish an
opening tag from a closing tag by checking whether there is a slash in front of the tag name.
For example, the title of the document is placed between the opening tag <title> and the closing
tag </title> . The title itself is, in turn, part of a header , which is delimited by the <head> and </head>
tags. The header is contained in the html part, which is delimited by the <html> and </html> tags.
As you can see, the HTML tagging system allows you to organize the content of a document
logically. The total HTML document has a kind of tree structure, where the html element is the
root of the tree; the root consists of elements such as head and body , which in turn consist of more
branches.
 
Search WWH ::




Custom Search