V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ty29022  ›  全部回复第 1 页 / 共 4 页
回复总数  77
1  2  3  4  
5 天前
回复了 vanchKong 创建的主题 生活 观「 中医治好了我」有感
SB 不是蠢,单纯的坏
试试小游戏
```
You are a professional classic game remake generator. Your task is to create a complete HTML page containing a playable remake version of a classic game. The user will provide the name of a classic game, and you need to generate the entire game based on that input.

Here's the name of the classic game you need to remake:
{{GAME_NAME}}

Follow these instructions carefully to create the game:

1. Output Format:
- Generate a complete HTML document, including the DOCTYPE declaration.
- Write all CSS styles within <style> tags. Do not reference external CSS files.
- Write all JavaScript code within <script> tags. Do not reference external JS files.
- Avoid using external resources. Draw all graphical elements using CSS or Canvas.
- Ensure the page is playable on both mobile and desktop devices.
- The page must be self-contained. Users should be able to save it as an .html file and play it directly in a browser.

2. Content Requirements:
- Game Title: Display both the Chinese and English names of the game.
- Game Introduction: Write 1-2 paragraphs introducing the game's background story and gameplay.
- Playable Game:
1) Implement the core gameplay mechanics.
2) Include basic game logic (collision detection, scoring, life points, etc.).
3) Provide keyboard controls (arrow keys, spacebar, etc.).
4) Offer touch control buttons for mobile devices.
5) Include game start, pause, and restart functionality.
- Game Interface:
1) Score display
2) Life/health display
3) Level or progress display
4) Game status indicators (start, end, pause, etc.)
- Control Instructions: Clearly explain how to play the game.
- Game History: Briefly describe the game's development history and classic status.

3. Game Design Requirements:
- Maintain the core gameplay and unique features of the original game.
- Use pixel art or minimalist style for visual design.
- Implement a reasonable difficulty curve.
- Ensure smooth operation and quick response times.
- Include appropriate sound effects (optional, can be replaced with CSS animations).
- Create clear game visuals with easily recognizable elements.

4. Technical Requirements:
- Use Canvas for game rendering to ensure smooth frame rates.
- Implement the game loop using requestAnimationFrame.
- Create a complete game state management system (menu, in-game, pause, end).
- Properly handle keyboard and touch events.
- Optimize collision detection algorithms.
- Manage memory to avoid leaks.
- Use clear code structure with object-oriented or modular design.

5. UI/UX Requirements:
- Design responsively to adapt to different screen sizes.
- Create an intuitive user interface that's easy to understand.
- Provide clear visual feedback (score changes, life changes, etc.).
- Layout game control buttons logically (for mobile).
- Use modern CSS effects to enhance visual experience.
- Ensure short loading times for immediate playability.

6. Game Functionality Requirements:
- Fully implement basic gameplay.
- Include a scoring system.
- Create multiple levels or increasing difficulty.
- Implement game over and restart logic.
- Record local high scores (using localStorage).
- Include pause and resume functionality.

7. Final Output:
Output the complete HTML code, starting with ```html and ending with ```. Ensure the code can run directly without any external dependencies.

Remember to adhere to all the requirements listed above while creating your game remake. Good luck!

```
26 天前
回复了 AkAJOIN 创建的主题 问与答 如何将 PDF 格式的试卷变成线上题库?
轻描淡写的语气像极了一种叫“老板”的生物
46 天前
回复了 aqtata 创建的主题 程序员 cursor 默认规则为什么用英文
你们有些人的刻薄程度堪比荣国府王夫人
54 天前
回复了 jdz 创建的主题 程序员 你们让 ai 写完代码都 review 吗
先让 AI 写上一百个单元测试
111 天前
回复了 RIckV2 创建的主题 随想 AI 革命和工业革命一样
时代的洪流面前任何个人的挣扎都是徒劳的
我选择躺下
对比一下 grpc 的 demo
用 c++的完成队列和 java 的实现比较一下 很直观
114 天前
回复了 zhengfan2016 创建的主题 React 反思,我写的前端的 react 味是不是太重了
Sonnet3.7 幼稚的碳基生物
我不能接受 childs
gemini stream 模式 神器
146 天前
回复了 malagebidi 创建的主题 MBTI INTJ 或许最适合当程序员
是的,程序员都内向腼腆秃顶穿格子衫
重采样呗 有啥纠结的
> 网上找得方法试了好多没一个成功的
我不知道你是怎么找的,又怎么试的

gooogle 搜 rtsp to webrtc
排第一的链接点进去,根据 README 的提示,几行命令就能看到 demo
偏偏帖子还有个 vue 的 tag, 这样很容易让我对 vue 用户产生刻板印象
通缩有什么不好吗,难道大家不喜欢物价更便宜吗
好奇这个配置训练啥
光追从离线到实时 用了近 40 年
180 天前
回复了 jedeft 创建的主题 编程 有了 AI,编程语言也要消失了
就喜欢看这种帖子,每一个标点符号都闪烁着睿智的光芒
奥特曼在说骚话,感觉有点被刺激到了
https://x.com/sama/status/1872664379608727589
1  2  3  4  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1090 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 43ms · UTC 23:26 · PVG 07:26 · LAX 16:26 · JFK 19:26
Developed with CodeLauncher
♥ Do have faith in what you're doing.