Outschool
開啟貨幣、時區和語言設置
登入

第 5 部分:Matlab 程式設計 - 建立您自己的貪吃蛇遊戲

透過我們的 MATLAB 實作課程向您的孩子介紹編程,他們可以在其中創建有趣的貪吃蛇遊戲,同時學習編碼基礎知識、遊戲設計和解決問題的技能。
班級

包含什麼

5 現場會議
5 上課時間
作業
每週 1-2 小時. 1-2 整堂課
評估
1-2 整堂課
我們無法翻譯此文,請刷新頁面並再試一次。

課堂經歷

英語程度 - A2
Beginner - Intermediate 等級
What will be taught? 
In this MATLAB class, I will teach learners how to build a Snake game from scratch, covering essential programming concepts such as plotting, user input handling, collision detection, and game logic. They will also learn about game design principles and how to implement a scoring system.

What topics will I cover? I will cover the following topics:

Basic MATLAB Syntax and Commands: Learners will become familiar with MATLAB's syntax and basic commands, including plotting functions, handling graphical objects, and using arrays. This foundational knowledge is crucial for manipulating and displaying game elements.
Graphical User Interface (GUI) Elements: Students will learn how to create and manipulate graphical objects, such as rectangles and text, to design the game environment. They will understand how to use functions like rectangle, patch, and text to build and modify visual components.
Game Development Fundamentals: Learners will explore the fundamentals of game development, including object movement, collision detection, and game state management. They will implement logic for controlling the Snake, detecting collisions with food and walls, and updating the game state.

How is my class structured? 

The class is structured into five progressive lessons, each focusing on a specific aspect of game development. Each lesson includes a brief introduction, hands-on coding exercises, and practical examples. The structure is designed to build upon previous lessons, culminating in a complete Snake game project.

How will I teach?

I will teach through a combination of direct instruction, interactive coding sessions, and guided exercises. Each lesson will feature demonstrations of concepts, followed by practical coding activities where learners will implement what they've learned.

What's my teaching style?

My teaching style is hands-on and interactive, with a focus on the practical application of coding skills. Learners will receive step-by-step guidance and support as they work on their projects, fostering an engaging and supportive learning environment.

How much will learners get to interact with me? 

Learners will have ample opportunities to interact with me through live coding demonstrations, Q&A sessions, and one-on-one support during exercises. The class will include interactive elements such as coding challenges, group discussions, and real-time feedback to ensure that students grasp the concepts and apply them effectively.

學習目標

Students will learn and apply fundamental MATLAB commands and functions, such as plot, rectangle, patch, and text, to create and manipulate graphical objects in the game.
學習目標

教學大綱

5 課程
超過 5 週
課 1:
Introduction to MATLAB and Basic Plotting
 In this first lesson, students will become familiar with the MATLAB interface and learn basic plotting commands. They will create a simple figure and use the plot function to draw basic shapes and lines. Students will practice setting figure properties and adjusting plot limits. By the end of the lesson, they will have a basic understanding of how to create and manipulate graphical elements in MATLAB, which will serve as the foundation for more complex projects. 
60 分鐘線上直播課
課 2:
Creating the Game Environment
 This lesson focuses on designing the game environment for the Snake game. Students will use MATLAB commands to draw the game area with visible boundaries and a background. They will learn how to create and place static elements, such as the game edges and initial game objects. By the end of this lesson, students will have a structured game area where the Snake will move and interact. 
60 分鐘線上直播課
課 3:
Implementing the Snake
 In this lesson, students will program the Snake’s representation using MATLAB’s plot function to create a dynamic, moving snake. They will implement basic movement logic, allowing the Snake to move in response to keyboard inputs. Students will also learn how to handle direction changes and visualize the Snake as it grows. By the end of this lesson, students will have a functioning Snake that moves around the game area. 
60 分鐘線上直播課
課 4:
Adding Food and Scoring
 This lesson involves adding food objects to the game and implementing a scoring system. Students will learn how to place food randomly within the game area while avoiding edges. They will also implement collision detection so that the Snake can “eat” the food, which triggers a score increase and causes the Snake to grow. By the end of the lesson, students will have a complete game loop where the Snake interacts with the food and the score updates accordingly. 
60 分鐘線上直播課

其他詳情

父母的引導和規範
Students will need to download the Octave (an open-source alternative to MATLAB) in order for them to be able access the lessons and practise the MATLAB coding that is done in each lesson. Please use the link below to download and install Octave free of charge. https://octave.org/
教學語言
英語 (等級: A2)
外部資源
學習者無需使用標準 Outschool 工具以外的任何應用程式或網站。
來源
https://octave.org/
已加入 February, 2024
教師檔案
教師專業知識和證書
非美國 教學證書 在 數學
學士學位 在 科學 從 University of West Indies
Bachelor's degree in Physics
I completed a Master's degree in Physics and Engineering in Medicine which focused on the use of Matlab in engineering.

評論

現場團體課程
分享

US$20

每週
每週1次,共 5 週
60 分鐘

即時視訊會議
年齡: 13-16
4-10 每班學員人數

關於
支援
安全隱私加州隱私學習者隱私您的隱私選擇條款
下載這個軟體
在應用程式商店下載在 Google Play 上取得
© 2025 校外