Blogs

Follow Our Future Articles

Get new content delivered directly to your inbox.

Create a Dodge Game on Micro:bit by Using Python

In my previous post, I introduced how to create a dodge game on the smart hub of LEGO MindStorms by using MicroPython. In this post, I would like to introduce how to write a Python version of dodge game on micro:bit by using its new Python Editor (beta version). The final effect could be like…

Make Your LEGO Robot Play Tic-tac-toe Game

When we have a LEGO MindStorms set, we could create different models to simulate real world mechanics or creature. We could make the robot carry a stuff, follow a route to transfer the stuff. There is no limitation for the creation. In this post, I would like to introduce a project of having the robot…

A Self-help Guide to Learn Pgzero and Develop Python Games

If you have read my previous post PyGame is too complicated? Try PgZero, you might have an impression that Pgzero is much simpler to be used than PyGame. On the other hand, you might think it could only develop some simple games. Actually, using proper tools, we could use Pgzero to develop any games which…

A Method to Encrypt the Answer in Scratch Programming

If you are designing a quiz project in Scratch, you will check if the user could answer the questions correctly. However, since all the published projects share the code, your user could always “see inside” of the project and get the answer, like the following code snippet. How could you test your user without getting…

PyGame is too complicated? Try PgZero

In my previous posts, I introduced how to use PyGame to design 2D games with Python language. Pygame adds functionality on top of the excellent SDL library. User controls the main loop, designs their program functions and different sprites’ interaction. This gives user greater control in creating fully featured games and multimedia programs in the Python…

Remotely Control Your LEGO MindStorms Inventor

Assuming you have created a LEGO vehicle with the robot LEGO MindStorms Inventor, now you would like to use its remote control function to control it manually. What should we do? In this post, I would like to introduce a simple vehicle model and the code to realize remote control. Finally, I will explain how…

Which Apps Should I Use for LEGO Robots?

Recently, LEGO has updated its robotics software, especially for the products of LEGO MindStorms EV3 and LEGO MindStorms Inventor. Facing so many apps, you might wonder which apps you should install and what are their differences? In this post, I will introduce the apps of three LEGO robots, their download positions and differences. LEGO MindStorms…

LEGO Spike Prime – Design an automatic door

In today’s post, I would like to introduce a model made of LEGO Spike Prime. If you are using LEGO MindStorms, you could design this model, too. Since this two sets share many similar blocks. This is an open-ended project for the students. As instructor, we just put forward the requirement and then left it…

Use PyGame to Create Tetris Game – An Updated Version Part 2

In my previous post, I introduced the first part of Tetris game written in Python. Today, let’s continue the left part of the code. In the first part, we have introduced the class Piece and several functions which will be used by the main() function. Now, let’s see what the main() function is doing. Starting…

Use PyGame to Create Tetris Game – an Updated Version

In the previous posts, I once analyzed a Tetris game developed in Scratch. It uses Pen drawing tab to draw all the tetris pieces. However, due to the limitation of data structure in Scratch, the code structure is super complicated compared to other Scratch projects. How about we implement it in Python? On YouTube, some…

Use Python PyGame to Design a Game – Part 2

In my previous post, I introduced how to use PyGame to design a simple game and use project Catch Butterfly as an example. However, how to design a game with many butterflies at the same time? Based on the previous Catch Butterfly project, we might need to create several lists to store each butterfly’s position,…

Python Programming: Use Turtle Library to Realize Animation

In the previous post, I use Scratch 3.0 to create animation with Pen functionality. Could we do the same thing using Python? Definitely Yes. We could use Turtle library to generate the same effect, but with more concise code structure. In this post, Let me introduce how to implement it. If you would like to…

Scratch Programming – Animate with Pen

In previous posts, I analyzed many games made of Scratch 3.0 platform. Among them, some use Pen functionality to draw life value bar (Airplane Game), draw the grid in puzzle game (Purple Game), draw blocks in Tetris game, or draw water streams to generate animation. You may have known that because of the fast speed…


Follow Our Future Articles

Get new content delivered directly to your inbox.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.