Onboarding, Pre Survey, Basic Concepts in Python Programming. Game Canvas, Snake Creation.
Have a shot – Play With It
This week, we started building the foundation for our programming journey. Before we can create a complete game or work with sensors, we first need to understand how to communicate with a computer through code.
Setting Up: Thonny and Our First Game Window
We began by setting up Thonny as our Python programming environment and getting our first game window running.
Along the way, we explored an important concept for game development: coordinates and pixels.
A screen can be thought of as a coordinate system where the position of an object is represented using values such as X and Y. Understanding coordinates will become increasingly important as we start moving our game objects in the coming weeks.
We also had our first look at colour representation using RGB values, which allows us to define colours digitally.
Step 1: Building Through a Tiered Activity
After completing Step 1, we moved into our first hands-on activity using the Fill-in → Debug → Extend → Create progression:
-
-
- Fill-in – Complete the missing parts of the code.
- Debug – Find and correct errors in the program.
- Extend – Modify the existing program to add or change something.
- Create – Use what you have learned to create your own solution.
-
Alongside these activities, we also included:
-
-
- Concept – What Python concept are you learning?
- Reflect – What did you discover, and what did you find challenging?
-
The idea is simple: don’t just make the code run—understand what you are doing.
Programming Is Like Talking to a Computer
Learning programming is, in many ways, like learning how to communicate or give instructions to a computer.
Computers are very precise. They follow the instructions we provide, but they do not automatically understand what we meant.
This week, you may have already noticed some important characteristics of Python:
-
-
- Python is case-sensitive.
- Spaces and indentation matter.
- Small typing differences can change the meaning of a program.
- The computer executes the instructions according to the code we provide.
-
These may seem like small details, but they form the basic “language rules” we need to follow when communicating with a computer.
A First Look at the Command Line
You may also have noticed that we started using CMD / Command Prompt when installing Python libraries.
This is another important skill.
Programming is not only about writing code inside Thonny. As we progress, you will encounter different tools and environments for installing libraries, running programs, and interacting with your development environment.
So, don’t be afraid of the command line! ????
What’s Next?
For next week, we will continue our journey with Step 2 and Step 3 of the game development.
We will gradually introduce more programming concepts while continuing to build our game.
Remember:
Don’t rush to finish the game. Focus on understanding the code as you build it.
Important: Activity 1 Submission
Please make sure you submit Activity 1 through the web platform.
I will be referring to your Activity 1 submission for class attendance, so please make sure it is completed and submitted.
See you in Week 2!
Keep coding, keep debugging, and keep asking: “Why does this code work?”
DRE2213










BTE1522
































































































