Sources for Readers
第 23 / 23 篇 课程状态:读取中 上次阅读位置保存在当前浏览器
访问日期均为 2026-08-31。政策/平台/浏览器兼容会变化;用于上线判断时请点击官方来源复核当前版本。
S01 · Canvas API
MDN · Canvas https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API
本书采用:Canvas provides a scriptable bitmap drawing surface for 2D graphics and can host WebGL contexts.;Canvas pixels are not a substitute for semantic DOM content or accessibility text.
读者使用:判断游戏页是否过度依赖 Canvas 时,先把 Canvas 隐藏或禁用;如果玩法说明、控制提示和关键链接随之消失,就判为需要修正。执行时把这些内容放回语义化 DOM,并再次验证页面仍可阅读和导航。
S02 · WebGL API
MDN · WebGL https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API
本书采用:WebGL enables hardware-accelerated 2D/3D rendering in a canvas.;Actual capability depends on browser/device/GPU, so feature detection and fallback matter.
S03 · Web Audio API best practices
MDN · WebAudio https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Best_practices
本书采用:Browsers can suspend or block audio started outside user activation.;Create/resume AudioContext from a user gesture and expose audio controls.
S04 · Window.requestAnimationFrame()
MDN · Game loop https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame
本书采用:requestAnimationFrame schedules callbacks before repaint and generally tracks display refresh rate.;Use the callback timestamp/delta rather than assuming 60 FPS; background tabs are commonly paused.
S05 · Page Visibility API
MDN · Page lifecycle https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
本书采用:visibilitychange reports when the page becomes hidden or visible.;Games should use visibility state to pause simulation/audio or safely resume.
S06 · Pointer events
MDN · Input https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events
本书采用:Pointer Events unify mouse, pen and touch in one event model.;Touch targets need adequate size; pointerType can distinguish device families when necessary.
S07 · KeyboardEvent.code
MDN · Keyboard https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
本书采用:code represents physical key position rather than the produced character.;It is useful for game controls but is not Baseline everywhere; avoid depending on it without fallback or testing.
S08 · Gamepad API
MDN · Gamepad https://developer.mozilla.org/en-US/docs/Web/API/Gamepad
本书采用:Gamepad API exposes buttons/axes and navigator.getGamepads().;Feature details vary across platform/controller combinations.
S09 · Storage quotas and eviction criteria
MDN · Storage https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria
本书采用:Browser storage is best-effort by default and can be evicted under storage pressure.;Writes can fail with QuotaExceededError; critical saves need error handling/export/server sync strategy if truly valuable.
读者使用:判断某份存档是否能只依赖浏览器本地存储时,先按丢失代价分级;不可接受丢失的数据不要只放 best-effort storage。执行时模拟写入失败/清站点数据,并验证游戏能给出可理解恢复路径而不是静默丢档。
S10 · Making PWAs installable
MDN · PWA install https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Making_PWAs_installable
本书采用:Installability relies on a web app manifest and secure delivery requirements; UI varies by browser/platform.;An installable PWA should be treated as progressive enhancement, not a guaranteed button everywhere.
S11 · Offline and background operation
MDN · PWA offline https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Offline_and_background_operation
本书采用:Service workers can intercept fetches and use Cache API for offline behavior.;Offline policy must distinguish app shell/static assets from network-only data.
读者使用:判断某资源能否离线缓存时,先把它归类为 app shell/static 或 network-only;执行离线测试时分别断网验证首次访问与已缓存回访,若关键启动路径在声明可离线的场景失败,就回到缓存策略修正。
S12 · Welcome to Phaser Docs
Phaser Studio · Phaser https://docs.phaser.io/
本书采用:Phaser is an open-source HTML5 game framework for WebGL/Canvas on desktop and mobile browsers.;It supports JavaScript and TypeScript and provides higher-level game systems.
S13 · Phaser.AUTO / First Game
Phaser Studio · Phaser renderer https://docs.phaser.io/phaser/getting-started/making-your-first-phaser-game
本书采用:Phaser.AUTO attempts WebGL and falls back to Canvas.;The basic scene lifecycle uses preload/create/update, making it suitable when framework abstractions outweigh dependency cost.
S14 · Cloudflare Pages overview
Cloudflare · Cloudflare Pages https://developers.cloudflare.com/pages/
本书采用:Pages remains available for Git/direct-upload static deployments and supports Functions/rollbacks.;As of Aug 25 2026 Cloudflare states Workers is its primary platform and recommends new projects start with Workers; the book therefore teaches Pages as a valid static route, not as the universal default.
读者使用:判断新项目托管路线时,先用这份官方总览核对 Pages 与 Workers 的当前定位;若选择 Pages,再执行本书的 preview→production 流程,并在上线前验证 rollback/Functions 能力仍与当前文档一致。
S15 · Pages Git integration
Cloudflare · Cloudflare Git https://developers.cloudflare.com/pages/configuration/git-integration/
本书采用:Git integration deploys on branch pushes and provides preview deployments/PR URLs.;The initial deployment mode is an architectural choice; Pages docs warn Git-integrated projects cannot simply switch to Direct Upload later.
S16 · Pages rollbacks
Cloudflare · Cloudflare rollback https://developers.cloudflare.com/pages/configuration/rollbacks/
本书采用:Successful production deployments are rollback targets.;Preview deployments are not rollback targets.
S17 · GA4 recommended events
Google Analytics · Analytics events https://developers.google.com/analytics/devguides/collection/ga4/reference/events
本书采用:Game-related recommended events include level_start, level_end, post_score, tutorial_begin/tutorial_complete and unlock_achievement.;Use prescribed parameters where available and validate incoming events in Realtime/DebugView.
S18 · GA4 Funnel exploration
Google Analytics · Analytics funnels https://support.google.com/analytics/answer/9327974?hl=en
本书采用:Funnel exploration supports open or closed funnels and up to 10 steps.;Funnel drop-off is useful for tutorial/level progression diagnosis when event semantics are stable.
读者使用:判断某一步流失是否真是玩法问题前,先验证该步事件定义和参数在 DebugView/Realtime 中稳定;事件语义不稳定时先修埋点,不据此调整关卡。
S19 · Create an experiment integration with Google Analytics
Google Analytics · Experiments https://developers.google.com/analytics/devguides/collection/ga4/integration
本书采用:Custom/in-house experiments can send an experiment exposure event with experiment and variant identifiers.;Analysis should compare predeclared metrics by variant rather than changing success criteria after results arrive.
读者使用:实验上线前先写死成功指标与守门指标;判断结果时只比较真实暴露过 variant 的用户,并验证 experiment/variant 参数能在采集端回读。若结果出来后才改成功标准,该轮不判 PASS。
S20 · Understand JavaScript SEO basics
Google Search Central · SEO JavaScript https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics
本书采用:Google processes JavaScript through crawling, rendering and indexing, and server-side/pre-rendering remains useful for users and crawlers.;Use crawlable anchor hrefs and unique titles/meta descriptions; do not hide essential discoverability behind a single canvas/app shell.
S21 · SEO Guide for Web Developers
Google Search Central · SEO game pages https://developers.google.com/search/docs/fundamentals/get-started-developers
本书采用:Each important screen/content unit should have a discoverable URL and crawlable links.;Google does not index content rendered only inside canvas; textual game description/instructions should exist as DOM content.
S22 · Google Search technical requirements
Google Search Central · Search eligibility https://developers.google.com/search/docs/essentials/technical
本书采用:Googlebot must not be blocked, the page should return a successful status, and there must be indexable content.;Meeting minimum requirements does not guarantee indexing.
S23 · Invalid traffic
Google AdSense · Ads invalid traffic https://support.google.com/adsense/answer/16737?hl=en
本书采用:Invalid traffic includes self-clicks, repeated/encouraged clicks, accidental-click implementations and automated traffic.;Publishers are responsible for traffic quality; enforcement may limit ad serving or close accounts.
S24 · Ad placement policies
Google AdSense · Ads placement https://support.google.com/adsense/answer/1346295?hl=en
本书采用:Ads must not be placed so they can be mistaken for navigation/game controls or induce accidental clicks.;Game windows and high-touch interaction zones require extra separation from ads.
S25 · COPPA - Publisher Policies
Google Publisher Policies · Child-directed ads https://support.google.com/publisherpolicies/answer/10436800?hl=en
本书采用:Covered child-directed properties/sections must notify/tag Google appropriately.;Interest-based advertising must not target known under-13 activity or child-directed site activity.
读者使用:只要页面或分区可能属于 child-directed,就先停止用普通成人广告配置继续上线;判断受众后按当前政策完成标记/通知,并验证该分区没有基于儿童活动的兴趣广告。无法确认时保持 PAUSE/UNKNOWN。
S26 · Personalized advertising
Google Publisher Policies · Personalized ads https://support.google.com/publisherpolicies/answer/15101728?hl=en
本书采用:Google prohibits personalized-ad targeting based on under-13 or child-directed site activity.;Sensitive category restrictions also apply; ad integration is a policy decision, not merely a code snippet.
S27 · EU user consent policy
Google · EU consent https://www.google.com/about/company/user-consent-policy/
本书采用:For covered Google products in EEA/UK/Switzerland, legally valid consent may be required for cookies/local storage and ad-personalization data use.;Policy requires consent records and clear revocation instructions.
S28 · 16 CFR Part 312: COPPA - Final Rule Amendments
U.S. Federal Trade Commission · Children privacy https://www.ftc.gov/legal-library/browse/federal-register-notices/16-cfr-part-312-coppa-final-rule-amendments
本书采用:FTC published COPPA Rule amendments in 2025.;A child-directed or mixed-audience game can create material privacy/retention/advertising obligations; legal applicability requires jurisdiction-specific review.
S29 · Copyright Office Releases Part 2 of Artificial Intelligence Report
U.S. Copyright Office · AI copyright https://www.copyright.gov/newsnet/2025/1060.html
本书采用:AI-assisted work can be copyrightable where a human determines sufficient expressive elements, including creative selection/arrangement/modification.;Mere prompting alone is not treated as sufficient human authorship for copyright in generated output under the Office's stated approach.
S30 · Computer Programs
U.S. Copyright Office · Code copyright https://www.copyright.gov/register/tx-programs.html
本书采用:Copyright can protect copyrightable expression in program code but not ideas, program logic, algorithms, systems or methods.;Dependency license terms still govern reuse even when functional ideas are unprotectable.
S31 · Circular 33: Works Not Protected by Copyright
U.S. Copyright Office · Fonts https://www.copyright.gov/circs/circ33.pdf
本书采用:U.S. copyright law generally does not protect typeface as such.;That does not mean every font file is free to redistribute; software/font-license terms and non-U.S. rights still require checking.
S32 · What Does Copyright Protect?
U.S. Copyright Office · Copyright basics https://www.copyright.gov/help/faq/faq-protect.html
本书采用:Original website writings, artwork, photos, music and software may be protected expression.;Facts, ideas, systems and methods are not protected as copyright expression in the same way.
S33 · Turnstile server-side validation
Cloudflare · Abuse protection https://developers.cloudflare.com/turnstile/get-started/server-side-validation/
本书采用:Turnstile client tokens require server-side Siteverify validation; client-side widget alone is not protection.;Tokens expire and are single-use, reinforcing that competitive score submission must be verified on a trusted server path.
S34 · Playwright browsers
Microsoft Playwright · Browser QA https://playwright.dev/docs/browsers
本书采用:Playwright supports automated testing across Chromium, Firefox and WebKit engines.;Automation complements, but does not replace, physical-device touch/audio/performance checks.
S35 · FTC's Endorsement Guides: What People Are Asking
U.S. Federal Trade Commission · Affiliate disclosure https://www.ftc.gov/business-guidance/resources/ftcs-endorsement-guides-what-people-are-asking
本书采用:Affiliate/material connections should be disclosed clearly and conspicuously so readers can weigh the relationship.;Disclosure should be close to the recommendation/link rather than buried in a general page or after the user must keep scrolling.
S36 · FTC Announces Updated Advertising Guides to Combat Deceptive Reviews and Endorsements
U.S. Federal Trade Commission · Endorsement guides https://www.ftc.gov/news-events/news/press-releases/2023/06/federal-trade-commission-announces-updated-advertising-guides-combat-deceptive-reviews-endorsements
本书采用:FTC revised its Endorsement Guides in 2023, including a clear-and-conspicuous disclosure definition and special concern for child-directed advertising.;Platform disclosure tools may not by themselves be adequate in every context.