|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/javascript-card-game-course/
课程评论:没有评论
Coursera 课程总结:JavaScript 纸牌战争游戏项目 本课程将引导您从零开始,使用 JavaScript 制作一款有趣的互动纸牌战争游戏。如果您想深入了解 JavaScript 的 DOM 操作,并通过实际项目来巩固您的知识,那么这门课程将是您的理想选择。 **课程亮点:** * **构建经典游戏:** 您将学习如何实现一个纸牌战争游戏,规则是:每位玩家轮流出牌,牌面数字最大的玩家赢得本轮的牌。 * **核心 JavaScript 技能:** * **DOM 选择与操作:** 掌握如何选取和修改 HTML 元素。 * **数组的使用:** 学习创建和处理 JavaScript 数组,包括各种数组方法。 * **事件监听:** 了解如何响应用户的交互操作。 * **动态更新:** 实现实时更新元素样式和内容。 * **动态创建元素:** 学会如何动态生成 HTML 元素并将其添加到页面中。 * **游戏逻辑实现:** * **用户输入:** 允许玩家自定义游戏轮数,支持多玩家模式。 * **卡牌机制:** 创建一副 52 张牌,并将其公平分配给玩家。 * **牌面比拼:** 实现牌面大小的比较,以及平局时的加赛机制(比拼后续牌)。 * **游戏流程控制:** 管理游戏进程,直到有一位玩家赢得所有牌。 * **游戏重置:** 提供游戏重开的功能。 * **纯 JavaScript 实现:** 本课程承诺不使用任何第三方库或捷径,让您专注于纯粹的 JavaScript 编程,构建真正动态和交互式的 Web 应用。 * **循序渐进的学习:** 提供详细的分步指导,确保学习过程清晰明了。 * **无依赖性:** 课程仅侧重于 JavaScript,但假定您已具备 HTML 和 CSS 的基础知识。 * **支持与保障:** 享受友好的问答支持,并且有 30 天无理由退款保证。 **先决条件:** * **JavaScript 基础知识:** 课程将教授与游戏开发相关的 JavaScript 内容。 * **HTML 和 CSS 基础知识:** 课程的重点是 JavaScript,因此需要您具备 HTML 和 CSS 的基础。 加入这门课程,立即开始动手构建您自己的纸牌战争游戏版本!
Learn more about JavaScript - DOM manipulation while building a fun interactive game from scratch Card war game - highest card wins the pot of cards - Game outlineLet the user select the number of playersUse JavaScript to create a deck of cards (52)Deal the cards to each player evenlyFlip the top card for each playerCheck which card it the highest value - if there is a tie run a playoffOn tie run the playoff function checking to see the players followup cards and who has the highest. If the player runs out of cards they lose.Let the player determine how many rounds of attack will be runKeep running steps 4-7 until one player holds all the cards and is the winnerOnce a winner is determined allow the player to restart the game build the sequence againCourse CoversElement selection and manipulationCreating arrays in JavaScript - Array methods and array data handlingAdding event listeners to listen for user interactionsUpdating element style properties and values on the flyAdding and removing element classesCreating elements dynamically and adding them to the pageApplying game play logic and game development logicBig fixes and debugging applicationsChecking game logic and applying game logic to create play pathSource Code is includedNo libraries, no shortcuts just learning JavaScript making it DYNAMIC and INTERACTIVE web application.Step by step learning with all steps included.Beginner JavaScript knowledge is required as the course covers only JavaScript relevant to the building of the game. Also HTML and CSS knowledge is essential as scope of this course is all JavaScript focused. Along with friendly support in the Q & A to help you learn and answer any questions you may have. Try it now you have nothing to lose, comes with a 30 day money back guarantee. Start building your own version of the game today!!!!