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 …

Continue reading Remotely Control Your LEGO MindStorms Inventor

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 …

Continue reading Which Apps Should I Use for LEGO Robots?

Play LEGO Robotics – Common Steps of Designing Your Own Model

No matter which LEGO robotics model you are playing with - LEGO WeDo 2.0, LEGO EV3, LEGO Spike Prime or LEGO MindStorms Inventor, one of the most exciting tasks could be to create your own model and make the model move with the control of LEGO App or other software. However, it is often easier …

Continue reading Play LEGO Robotics – Common Steps of Designing Your Own Model

From PyGame to GoDot – What’s Their Difference?

About PyGame If you would like to use Python to develop 2D game, your first choice might be PyGame, which is popular among Python game developers. Go to the website https://www.pygame.org/docs/ref/key.html, you could browse all of the classes and their explanation. All of the stuffs are grouped into the pygame library. If you do not …

Continue reading From PyGame to GoDot – What’s Their Difference?

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 …

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

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 …

Continue reading Use PyGame to Create Tetris Game – an Updated Version

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, …

Continue reading Use Python PyGame to Design a Game – Part 2

Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 4

In the previous posts, I introduced the core sprite of the Blocky game, the "Blocks" sprite, which is responsible for adding, deleting or editing the environment blocks. Starting from this post, we are going to switch to the other core sprite - Hitbox. Homescreen UI Sprite Before introducing the code of Hitbox sprite, I would …

Continue reading Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 4

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 …

Continue reading Python Programming: Use Turtle Library to Realize Animation

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 …

Continue reading Scratch Programming – Animate with Pen