传奇泄漏 - 魔典 - 第二部分:法术与基础咒语
本章节提供一系列互动编程练习,涵盖创意艺术、物理模拟、文本冒险游戏和2D游戏开发。学习者将使用P5.js创建动画艺术,利用Matter.js实现球池物理效果,编写ASCII风格文字冒险游戏,并使用Kaboom.js或Phaser构建简单2D游戏。此外还包括Rive动画工具的使用指导,适合初学者掌握基础的网页交互与可视化技能。
提示词正文
复制后可直接粘贴到模型或内部评测工具。
Part 2: Spells, Beginner Incantations
Chapter 6: Telekinesis 101, Interactive
12: Code in Motion: P5.js Make an art collage, get things moving! Time to make pretty things
Browse the references & examples here to learn more: https://p5js.org/reference/ and https://p5js.org/examples/ to see what you can do with p5!
Use the live web editor to preview your code: https://editor.p5js.org/
Use N hotkey to auto deploy or use ND to manually deploy on https://app.netlify.com/drop
13: Ballpit physics: Matter.js Lets introduce something fancier, physics and gravity! Make a ballpit with matterjs & P5.js
To learn more We will use https://brm.io/matter-js/ to create a ballpit See demos here: https://brm.io/matter-js/demo/#mixed Code for demos: https://github.com/liabru/matter-js/tree/master/examples Tutorials: https://github.com/liabru/matter-js/wiki/Tutorials
Use N hotkey to auto deploy or use ND to manually deploy on https://app.netlify.com/drop
14: Games 101: ASCII text adventure game Use build a simple text adventure game. Old school ASCII style
Use N hotkey to auto deploy or use ND to manually deploy on https://app.netlify.com/drop
15: Basic game engine: Kaboom.js, phaser.js Get started building simple 2d game with https://kaboomjs.com/ or https://phaser.io/ First brainstorm a game to build, and then go make it
Use dalle to draw any assets needed
16: Game animation: Rive https://rive.app/ Use dalle to create a character Then use rive to animate them! Or create one from scratch!
then export it via the Rive runtime, to use in a game or website
Chapter 7: Dark Arts 101, Data
17: Calculator App Learn how basic math operations interweave with code
18: Todo list, CRUD A classic in coding. Create a todo list. Learn the basics of CRUD Save your todos to a database so you can come back to them later.
19: Habit tracker Create a habit tracker Learn the basics of CRUD Save your habits to a database so you can track and analyze them
20: Chess Build the classic game of chess
For bonus points -Add new rules or pieces -Build an ai that plays against you
Chapter 8: Earthbending 101, Build your blog!
Pick one blog to make, depending on how fancy you want to get
21: Create a blog, you have a few options. -Blog with .md files Setup a simple static blog using .md files as posts. Create components for the header, footer, and post. Optional: Use a static site generator.
-Blog using notion as a cms / database Setup a blog using notion as a cms & database This will require setting up a backend server such as express.js, in order to fetch notion data using an api key Create tables and/or pages in notion, for blog posts and any other kinds of content Create a notion integration https://www.notion.so/my-integrations Use browser tool to look up documentation here: https://developers.notion.com/docs/getting-started Link it to your site
-Blog using ghost or another dedicated platform Build a blog using https://ghost.org/ Host with ghost and use a template, or customize the template in handlebars, or run it as a headless cms and build your own. Use browser tool to look up documentation here: https://ghost.org/docs/
使用场景
参考输出
一个可交互的在线作品集合,包含:使用P5.js实现的彩色粒子艺术装置;由Matter.js驱动的弹跳球池模拟器;基于纯文本输入输出的ASCII迷宫探索游戏;以及使用Kaboom.js开发的像素风角色控制小游戏。用户可通过点击、拖动等方式进行实时互动。
评分维度
完成度评估:基础功能实现(40%);代码结构与可读性(20%);视觉效果与用户体验(20%);附加功能或创新点(20%)。若涉及数据库或API集成,需验证数据持久化与接口调用正确性。
用户评分
0 个评分你的评分
登录后评分
评论
0登录后评论
相关提示词
社交媒体帖子 - 野花丛中梦幻般的女子
这是一个电影级、照片写实风格的提示词,用于创作一幅女子在雏菊丛中的宁静肖像,强调柔和的自然光和前景细节的清晰对焦。