パート 5: Matlab プログラミング - 独自のスネーク ゲームを構築する
実践的な MATLAB クラスでお子様にプログラミングを学んでもらいましょう。楽しい Snake ゲームを作成しながら、コーディングの基礎、ゲーム デザイン、問題解決スキルを学びます。
含まれるもの
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/
レビュー
ライブグループコース
$20
毎週週に1回、 5 週間
60 分
オンラインライブ授業
年齢: 13-16
クラス人数: 4 人-10 人