⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdc.html

📁 java编程的一些Applets例子。值得深入研究一下。
💻 HTML
字号:
<html>
<head>
   <title>asteroids.html</title>
   <meta name="GENERATOR" content="Mozilla/2.01Gold (Win32)">
</head>
<body>

<h1 align=center>Asternoids</h1>

<p>
<hr><applet code="aster.class" width=500 height=400><param name=wid value=500><param name=hei value=400></applet>
<hr></p>

<p>Applet name: Asternoids 
<br>Applet Source: <a href="aster.java">asternoids.java 
<br></a>Import(s): java.util, java.lang, java.awt, java.applet, java.net

<br>Feature(s): text, image, animation, audio, keyboard 
<br>Author: <a href="mailto:sigelman@javanet.com">Ben Seigelman</a></p>

<h2>Usage Guide:</h2>

<p>Asternoid! takes two parameters: &quot;wid&quot; and &quot;hei&quot;,
which are the width and height of the applet. These should be the same
as the width and height values specified in the HTML file. The game starts
when the user clicks on the applet, and is played with the following keys:</p>

<pre>_________________________________________________
|  KEY  |  Function                              |
|   J   |  Rotates the player counter-clockwise  |
|   L   |  Rotates the player clockwise          |
|   K   |  Thrust                                |
|&lt;space&gt;|  Shoot                                 |
|   Z   |  Shield                                |
|_______|________________________________________|
</pre>

<p>The shield is displayed in the red bar at the top of the applet. The
key recognition is better than the recognition built into java itself.</p>

<p>an example of valid html code: 
<br></p>

<pre>&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;ASTERNOID!&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;APPLET CODE=aster WIDTH=400 HEIGHT=400&gt;
        &lt;PARAM NAME=wid VALUE=400&gt;
        &lt;PARAM NAME=hei VALUE=400&gt;
        &lt;/APPLET&gt;</pre>

<center><p>
<hr><a href="../index.html"><img src="../images/mantoid.gif" alt="Return to index." border=0 height=109 width=109></a></p></center>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -