The Essential Guide to HTML5

(Greg DeLong) #1

INDEX


craps game sample and, 24
quiz sample and, 186, 193
rock-paper-scissors game sample and, 267
mathematical expressions, 25
mazes sample, 213–258
building, 232–257
customizing, 256
difficulty levels and, 230, 231
testing/uploading, 257
versions of, 214, 218, 230, 232, 246
MCard function, for blackjack card game
sample, 323, 326, 331
memory game (sample), 141–177
building, 154–176
clicking on cards and, 152
customizing, 176
improving, 176
shuffling cards and, 152
testing/uploading, 176
versions of, 141
methods, 11, 102, 324
milliseconds, 76, 148
Miro converter, 191, 272
more_to_house function, for blackjack card
game sample, 325–327, 331
mouse events
browser implementations and, 153
mazes sample and, 218, 219
quiz sample and, 184
slingshot sample and, 108
moveandcheck function, 78, 80
moveball function, 102
for bouncing ball sample, 76, 77, 80
for cannonball sample, 111, 119
for slingshot sample, 129
moveit method, 102, 103
for mazes sample, 219
for slingshot sample, 109, 128
moves by computer
blackjack card game sample and, 317
history of moves and, 262
rock-paper-scissors game sample and,
267–274
moveTo method, 107
paths and, 299
polygons and, 151
movetoken function, for mazes sample, 219,
233, 246


MP3 audio format, 272
multilingual applications, 284
multiplication operator (*), 25
musicch variable, 274
mx variable, 153, 266
my variable, 153, 266
mypent variable, 219
Myrectangle function, 102, 103
for cannonball sample, 111, 118
for slingshot sample, 129

N
naming conventions, 103
for functions, 25, 103
for variables, 25
natural languages, vs. programming languages,
11
nested elements, 4, 5
nested expressions, 25
nested for loops, 323
new operator, 71, 102, 263
new round feature, for games, 210
newgame function, for blackjack card game
sample, 331
newscore variable, for rock-paper-scissors
game sample, 268, 270
notation, 11
Notepad, 12
nq variable, 186
number of days in the month calculation
(sample), 29
"Number of matches so far: " expression, 151
numbers, 27
form input and, 79
vs. strings, 77

O
object-oriented programming, 111
objects, 102
defining, 102
programmer-defined, 101, 324
OGG audio format, 272
onLoad method
mazes sample and, 232
rock-paper-scissors game sample and, 274
onSubmit method, mazes sample and, 232
Free download pdf