60 lines
1.8 KiB
HTML
60 lines
1.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
<head>
|
|
<title>Score</title>
|
|
<link href="style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body background="images/back.gif">
|
|
<!--START-->
|
|
|
|
<h3>Score</h3>
|
|
|
|
Other important aspects of many games are the score, the health, and the number
|
|
of lives. <i>Game Maker</i> keeps track of the <tt>score</tt> in a global
|
|
variable <tt>score</tt> and the number of <tt>lives</tt> in a global variable
|
|
lives. You can change the score by simply changing the value of this variable.
|
|
The same applies to health and lives. If lives is larger than 0 and becomes
|
|
smaller than or equal to 0 the no-more-lives event is performed for all
|
|
instances. If you don't want to show the score and lives in the caption,
|
|
set the variable <tt>show_score, etc.</tt>, to false. Also you can change
|
|
the caption. For more complicated games best display the score yourself.
|
|
|
|
<p>
|
|
<blockquote>
|
|
<tt><b>score</b></tt>
|
|
The current score.<br>
|
|
<tt><b>lives</b></tt>
|
|
Number of lives.<br>
|
|
<tt><b>health</b></tt>
|
|
The current health (0-100).<br>
|
|
<tt><b>show_score</b></tt>
|
|
Whether to show the score in the window caption.<br>
|
|
<tt><b>show_lives</b></tt>
|
|
Whether to show the number of lives in the window caption.<br>
|
|
<tt><b>show_health</b></tt>
|
|
Whether to show the health in the window caption.<br>
|
|
<tt><b>caption_score</b></tt>
|
|
The caption used for the score.<br>
|
|
<tt><b>caption_lives</b></tt>
|
|
The caption used for the number of lives.<br>
|
|
<tt><b>caption_health</b></tt>
|
|
The caption used for the health.<br>
|
|
</blockquote>
|
|
|
|
<!--END-->
|
|
</body>
|
|
</html>
|
|
|
|
<!-- KEYWORDS
|
|
score
|
|
lives
|
|
health
|
|
show_score
|
|
show_lives
|
|
show_health
|
|
caption_score
|
|
caption_lives
|
|
caption_health
|
|
|
|
--> |