ZH

RAINBOW ISLANDS

作者:davidnurdin · 重制版
5.0 (1)
▶ 开玩 💬 反馈 源码 🕘 版本 编辑 GitHub
games/rainbow-island / site / zh / index.html · commit 572589f
<!doctype html><html lang="zh"><head>	<meta charset="utf-8" />	<meta name="viewport" content="width=device-width, initial-scale=1" />	<title>在线免费玩 Rainbow Islands CPC 版 – 浏览器里的 PHP 重制版</title>	<meta name="description" content="在浏览器中免费玩 Amstrad CPC 版《Rainbow Islands》:7 座岛屿、28 个关卡、Boss、彩虹和原版音乐,用 JumPHP 以 PHP 重制。支持键盘、手柄和触屏。" />	<link rel="canonical" href="https://{{DOMAIN}}/zh/" />	<link rel="alternate" hreflang="fr" href="https://{{DOMAIN}}/" />	<link rel="alternate" hreflang="en" href="https://{{DOMAIN}}/en/" />	<link rel="alternate" hreflang="es" href="https://{{DOMAIN}}/es/" />	<link rel="alternate" hreflang="de" href="https://{{DOMAIN}}/de/" />	<link rel="alternate" hreflang="it" href="https://{{DOMAIN}}/it/" />	<link rel="alternate" hreflang="pt" href="https://{{DOMAIN}}/pt/" />	<link rel="alternate" hreflang="nl" href="https://{{DOMAIN}}/nl/" />	<link rel="alternate" hreflang="pl" href="https://{{DOMAIN}}/pl/" />	<link rel="alternate" hreflang="ru" href="https://{{DOMAIN}}/ru/" />	<link rel="alternate" hreflang="uk" href="https://{{DOMAIN}}/uk/" />	<link rel="alternate" hreflang="tr" href="https://{{DOMAIN}}/tr/" />	<link rel="alternate" hreflang="ja" href="https://{{DOMAIN}}/ja/" />	<link rel="alternate" hreflang="zh" href="https://{{DOMAIN}}/zh/" />	<link rel="alternate" hreflang="ko" href="https://{{DOMAIN}}/ko/" />	<link rel="alternate" hreflang="x-default" href="https://{{DOMAIN}}/" />	<meta name="robots" content="index, follow, max-image-preview:large" />	<meta name="theme-color" content="#1a3c8c" />	<link rel="icon" type="image/png" sizes="32x32" href="../images/favicon.png" />	<link rel="apple-touch-icon" href="../images/apple-touch-icon.png" />	<meta property="og:type" content="website" />	<meta property="og:locale" content="zh_CN" />	<meta property="og:site_name" content="Rainbow Islands CPC" />	<meta property="og:title" content="Rainbow Islands (Amstrad CPC) – 在线游玩" />	<meta property="og:description" content="用 PHP 重制的 CPC 版《Rainbow Islands》,保留原版画面和音乐:7 座岛屿、28 个关卡,浏览器里免费玩。" />	<meta property="og:url" content="https://{{DOMAIN}}/zh/" />	<meta property="og:image" content="https://{{DOMAIN}}/images/og.png" />	<meta property="og:image:width" content="1200" />	<meta property="og:image:height" content="630" />	<meta property="og:image:alt" content="Amstrad CPC 版《Rainbow Islands》的加载画面,四道彩虹之间" />	<meta name="twitter:card" content="summary_large_image" />	<meta name="twitter:title" content="Rainbow Islands (Amstrad CPC) – 在线游玩" />	<meta name="twitter:description" content="7 座岛屿、28 个关卡、Boss 和原版音乐,尽在浏览器。" />	<meta name="twitter:image" content="https://{{DOMAIN}}/images/og.png" />	<script type="application/ld+json">	{		"@context": "https://schema.org",		"@graph": [			{				"@type": "VideoGame",				"@id": "https://{{DOMAIN}}/zh/#game",				"name": "Rainbow Islands (Amstrad CPC) – PHP 重制版",				"alternateName": "Rainbow Islands CPC",				"url": "https://{{DOMAIN}}/zh/",				"image": "https://{{DOMAIN}}/images/og.png",				"screenshot": [					"https://{{DOMAIN}}/images/round-1.png",					"https://{{DOMAIN}}/images/round-10.png",					"https://{{DOMAIN}}/images/boss-28.png"				],				"description": "Amstrad CPC 版《Rainbow Islands》的浏览器可玩重制版:7 座岛屿、28 个关卡、Boss、彩虹、不断上涨的海水,保留原版画面和音乐。",				"genre": ["平台跳跃", "街机", "复古"],				"gamePlatform": ["网页浏览器", "电脑", "手机"],				"applicationCategory": "Game",				"operatingSystem": "任何较新的浏览器",				"playMode": "SinglePlayer",				"numberOfPlayers": {"@type": "QuantitativeValue", "value": 1},				"inLanguage": "zh",				"isAccessibleForFree": true,				"offers": {"@type": "Offer", "price": "0", "priceCurrency": "EUR", "availability": "https://schema.org/InStock"},				"codeRepository": "https://github.com/davidnurdin/rainbow-island",				"potentialAction": {"@type": "PlayAction", "target": "https://{{DOMAIN}}/play/"}			},			{				"@type": "FAQPage",				"mainEntity": [					{"@type": "Question", "name": "玩游戏需要安装什么吗?",					 "acceptedAnswer": {"@type": "Answer", "text": "不需要:游戏直接在浏览器中运行,电脑和手机都可以。首次加载会下载约 10 MB,之后全部缓存。"}},					{"@type": "Question", "name": "怎么玩?",					 "acceptedAnswer": {"@type": "Answer", "text": "方向键行走,上键或 Z 跳跃,空格或 X 发射彩虹,P 或 Esc 暂停。也支持手柄;在手机上,左手拇指下会出现虚拟摇杆。"}},					{"@type": "Question", "name": "这是原版游戏吗?",					 "acceptedAnswer": {"@type": "Answer", "text": "这是一个重制版:程序用 PHP 重新编写,但地图、精灵、字体、加载画面、音乐和音效都来自 1989 年的 Amstrad CPC 磁盘。"}}				]			}		]	}	</script>	<style>		:root {			--sky: #1a3c8c;			--sky-deep: #0b1840;			--ink: #f4f1e8;			--muted: #b9c3e6;			--panel: #10265e;			--line: #2d4fa8;			--yellow: #ffd23f;			--red: #e8382f;			--cyan: #3fd0ff;			--rainbow: linear-gradient(90deg, #c4161c, #f26a1b, #ffd23f, #3fbf3f, #1f8fff, #6a2fd0, #b02fb0);		}		* { box-sizing: border-box; }		html { scroll-behavior: smooth; }		body {			margin: 0;			background: var(--sky-deep);			background-image: linear-gradient(180deg, var(--sky) 0, var(--sky-deep) 900px);			color: var(--ink);			font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;		}		img { image-rendering: pixelated; image-rendering: crisp-edges; max-width: 100%; height: auto; display: block; }		a { color: var(--yellow); }		.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }		.pixel { font-family: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }		.stripe { height: 8px; background: var(--rainbow); }		header.hero { padding: 40px 0 56px; text-align: center; }		.hero .arc { width: 192px; margin: 0 auto 8px; }		.hero h1 { font-size: clamp(30px, 6vw, 58px); line-height: 1.1; margin: 0; color: var(--yellow); text-shadow: 4px 4px 0 var(--red); }		.hero .sub { margin: 14px auto 0; max-width: 680px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink); }		.cta { display: inline-block; margin-top: 28px; padding: 18px 34px; background: var(--yellow); color: #1a1a1a; text-decoration: none; font-weight: 800; font-size: 22px; border: 4px solid #1a1a1a; box-shadow: 6px 6px 0 var(--red); transition: transform .08s; }		.cta:hover, .cta:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--red); }		.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }		.hero .screen { margin: 40px auto 0; width: 100%; max-width: 768px; border: 6px solid #000; box-shadow: 0 0 0 4px var(--line), 0 20px 50px rgba(0, 0, 0, .5); }		section { padding: 56px 0; }		section + section { border-top: 2px solid var(--line); }		h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 18px; color: var(--yellow); }		h3 { margin: 0 0 6px; font-size: 18px; color: var(--cyan); }		p { margin: 0 0 14px; }		.lead { color: var(--muted); max-width: 760px; }		.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }		figure { margin: 0; background: #000; border: 4px solid #000; box-shadow: 0 0 0 3px var(--line); }		figcaption { background: var(--panel); padding: 8px 12px; font-size: 14px; color: var(--muted); }		figcaption b { color: var(--ink); }		.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }		.card { background: var(--panel); border: 3px solid var(--line); padding: 18px; }		kbd { display: inline-block; min-width: 1.8em; padding: 1px 7px; background: var(--ink); color: #111; border-radius: 3px; border-bottom: 3px solid #888; font: 600 14px/1.5 ui-monospace, monospace; text-align: center; }		.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }		@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }		details { background: var(--panel); border: 3px solid var(--line); padding: 14px 18px; margin-bottom: 12px; }		summary { cursor: pointer; font-weight: 700; }		details p { margin: 10px 0 0; color: var(--muted); }		footer { padding: 32px 0 48px; font-size: 14px; color: var(--muted); text-align: center; }		footer p { margin: 6px 0; }			nav.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; padding: 10px 16px; font-size: 14px; line-height: 1.4; background: var(--sky-deep); }		nav.langs a { color: var(--muted); text-decoration: none; padding: 2px 4px; }		nav.langs a:hover, nav.langs a:focus-visible { color: var(--yellow); text-decoration: underline; }		nav.langs a[aria-current] { color: var(--yellow); font-weight: 700; }	</style></head><body>	<div class="stripe"></div>	<nav class="langs" aria-label="语言">		<a href="../" hreflang="fr" lang="fr">Français</a>		<a href="../en/" hreflang="en" lang="en">English</a>		<a href="../es/" hreflang="es" lang="es">Español</a>		<a href="../de/" hreflang="de" lang="de">Deutsch</a>		<a href="../it/" hreflang="it" lang="it">Italiano</a>		<a href="../pt/" hreflang="pt" lang="pt">Português</a>		<a href="../nl/" hreflang="nl" lang="nl">Nederlands</a>		<a href="../pl/" hreflang="pl" lang="pl">Polski</a>		<a href="../ru/" hreflang="ru" lang="ru">Русский</a>		<a href="../uk/" hreflang="uk" lang="uk">Українська</a>		<a href="../tr/" hreflang="tr" lang="tr">Türkçe</a>		<a href="../ja/" hreflang="ja" lang="ja">日本語</a>		<a href="../zh/" hreflang="zh" lang="zh" aria-current="true">中文</a>		<a href="../ko/" hreflang="ko" lang="ko">한국어</a>	</nav>	<header class="hero">		<div class="wrap">			<img class="arc" src="../images/rainbow.png" width="192" height="128" alt="" />			<h1 class="pixel">Rainbow Islands</h1>			<p class="sub"><strong>Amstrad CPC</strong> 版《Rainbow Islands》(1989 年)用 PHP 重制,在浏览器里免费畅玩,保留<strong>原版画面和音乐</strong>。</p>			<a class="cta pixel" href="../play/?back=../zh/">▶ 开始游戏</a>			<p class="note">电脑、手机或手柄 · 无需安装 · 无需注册</p>			<img class="screen" src="../images/round-1.png" width="512" height="352"				alt="Bub 在第一座岛上,位于城堡塔楼之间,面前抛出了一道彩虹" />		</div>	</header>	<main>		<section id="jeu">			<div class="wrap split">				<div>					<h2>趁海水上涨之前向上攀登</h2>					<p>海水在身后不断上涨,Bub 必须爬到每个关卡顶端的 <b>G</b> 标牌处。他的武器是<strong>彩虹</strong>:能击晕敌人,可当作桥和楼梯;跳起后落在彩虹上会把它踩断,断掉的彩虹落下,被压到的敌人会变成钻石。</p>					<p><strong>7 座岛屿、28 个关卡</strong>,每座岛的结尾都有一个 Boss,还有水果、奖励、<em>HURRY!</em> 警告、续关画面和结局。</p>				</div>				<figure>					<img src="../images/loading.png" width="640" height="400" loading="lazy"						alt="Amstrad CPC 版《Rainbow Islands》的原版加载画面" />					<figcaption>1989 年磁盘上的<b>加载画面</b>,原样呈现。</figcaption>				</figure>			</div>		</section>		<section id="iles">			<div class="wrap">				<h2>七座岛屿</h2>				<p class="lead">每座岛都有自己的色彩、敌人和 Boss。以下是游戏在浏览器中运行时的截图。</p>				<div class="grid">					<figure><img src="../images/round-1.png" width="512" height="352" loading="lazy" alt="第 1 关,Insect Island:城堡和它的旗帜" /><figcaption><b>Insect Island</b> · 关 1</figcaption></figure>					<figure><img src="../images/round-6.png" width="512" height="352" loading="lazy" alt="第 6 关,Combat Island:橙色背景上的粉色方块,两道彩虹" /><figcaption><b>Combat Island</b> · 关 6</figcaption></figure>					<figure><img src="../images/round-10.png" width="512" height="352" loading="lazy" alt="第 10 关,Monster Island:夜晚的鬼屋" /><figcaption><b>Monster Island</b> · 关 10</figcaption></figure>					<figure><img src="../images/round-15.png" width="512" height="352" loading="lazy" alt="第 15 关,Toy Island:天空中的骰子和扑克牌" /><figcaption><b>Toy Island</b> · 关 15</figcaption></figure>					<figure><img src="../images/round-19.png" width="512" height="352" loading="lazy" alt="第 19 关,Doh's Island:打砖块游戏里的砖块" /><figcaption><b>Doh's Island</b> · 关 19</figcaption></figure>					<figure><img src="../images/round-26.png" width="512" height="352" loading="lazy" alt="第 26 关,Dragon Island:一面红砖墙" /><figcaption><b>Dragon Island</b> · 关 26</figcaption></figure>					<figure><img src="../images/boss-4.png" width="512" height="352" loading="lazy" alt="第一座岛的 Boss,一只巨大的蜘蛛" /><figcaption><b>第一个 Boss</b> · 关 4</figcaption></figure>					<figure><img src="../images/boss-28.png" width="512" height="352" loading="lazy" alt="巨龙,游戏的最终 Boss" /><figcaption><b>最后的 Boss</b> · 关 28</figcaption></figure>				</div>			</div>		</section>		<section id="commandes">			<div class="wrap">				<h2>操作方式</2>>				<div class="cards">					<div class="card">						<h3>键盘</3>>						<p><kbd>←</kbd> <kbd>→</kbd> 行走<br />							<kbd>↑</kbd> 或 <kbd>Z</kbd> 跳跃<br />							<kbd>空格</kbd> 或 <kbd>X</kbd> 彩虹<br />							<kbd>P</kbd> 或 <kbd>Esc</kbd> 暂停</p>					</div>					<div class="card">						<h3>手柄</3>>						<p>摇杆或十字键行走,<b>A</b> 跳跃,<b>X</b> 或 <b>B</b> 发射彩虹,<b>Start</b> 暂停。可在游戏前或游戏中接入。</p>					</div>					<div class="card">						<h3>手机</3>>						<p>屏幕左半边的任意位置,左手拇指下会出现虚拟摇杆;右侧是 <b>JUMP</b> 和 <b>RAINBOW</b> 按钮。请横向握持手机。</p>					</div>				</div>				<p style="margin-top: 28px; text-align: center"><a class="cta pixel" href="../play/?back=../zh/">▶ 立即游玩</a></p>			</div>		</section>		<section id="remake">			<div class="wrap split">				<div>					<h2>这个重制版是怎么做的</h2>					<p>没有任何东西是重新绘制的:原版磁盘在没有屏幕的 <strong>Amstrad CPC 模拟器</strong>中运行,模拟器记录了每一次内存写入和每一个演奏的音符。28 个关卡的地图、图块、精灵、字体、调色板、音乐和音效都由此提取。</p>					<p>随后用易读的 <strong>PHP</strong> 和 <a href="https://github.com/davidnurdin/jumPhp">JumPHP</a> 引擎重写游戏:同一份代码既能在电脑窗口中运行,也能在 PHP 被编译为 <strong>WebAssembly</strong> 的浏览器中运行。</p>					<p>提取工具发布在 <a href="https://github.com/davidnurdin/dsk2jumphp">dsk2jumphp</a>,游戏代码发布在 <a href="https://github.com/davidnurdin/rainbow-island">rainbow-island</a>。</p>				</div>				<figure>					<img src="../images/title.png" width="512" height="352" loading="lazy"						alt="使用 CPC 原版字体的标题画面" />					<figcaption><b>标题画面</b>,使用从磁盘中提取的 CPC 字体。</figcaption>				</figure>			</div>		</section>		<section id="questions">			<div class="wrap">				<h2>常见问题</2>>				<details>					<summary>需要安装什么吗?</summary>					<p>不需要:游戏直接在浏览器中运行,电脑和手机都可以。首次加载会下载约 10 MB(WebAssembly 版 PHP 和游戏本体),之后全部缓存。</p>				</details>				<details>					<summary>这是原版游戏吗?</summary>					<p>这是一个重制版:程序用 PHP 重新编写,但地图、精灵、字体、加载画面、音乐和音效都来自 1989 年的 Amstrad CPC 磁盘。</p>				</details>				<details>					<summary>分数会保存吗?</summary>					<p>最高分和选项(音量、语言)保存在你的浏览器中。</p>				</details>				<details>					<summary>可以在浏览器之外玩吗?</summary>					<p>可以:有了源代码和 Docker,运行 <code>bin/jumphp run rainbow-island</code> 即可在窗口中带声音地打开游戏。详见 <a href="https://github.com/davidnurdin/rainbow-island">GitHub 仓库</a>。</p>				</details>			</div>		</section>	</main>	<div class="stripe"></div>	<footer>		<div class="wrap">			<p>免费、无广告的粉丝重制版,使用 <a href="https://github.com/davidnurdin/jumPhp">JumPHP</a> 制作。</p>			<p>Rainbow Islands © Taito Corporation 1987;Amstrad CPC 版 © Graftgold 1989,由 Ocean 发行。本项目与上述公司均无关联;画面和音乐归其作者所有。</p>		</div>	</footer></body></html>