Use Python Pygame to Create Game

Students who learned Python for the first time might notice the difference between Scratch and Python. They could write with Python’s built-in functions and deal with the interaction with end user only through the print() and input() functions. Sometimes, it is a bit boring since no any graphical interface is included. Some might ask if …

Continue reading Use Python Pygame to Create Game

Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 2

In the last post, I analyzed those UI related sprite of the Melting Line puzzle game. In this post, I would like to introduce the list structure and how to judge pass/fail condition of the game. All of these functions are implemented by Algorithm Sprite. Algorithm Sprite "when I receive start a level" Code Segment …

Continue reading Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 2

Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 1

In the previous posts, I analyzed many puzzle projects, such as Gliding Puzzle, Game 2048, Tetris, etc. There is much difference between puzzle game and other popular Scratch games. Puzzle games usually have static background and focus less on sprite's costume and actions. Therefore, some players might feel that puzzle games are not so shiny. …

Continue reading Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 1

Scratch 3.0 – Several Tools to Enhance the Visual Effect of Your Game

If you are a new Scratcher, you might wonder how to use your own pictures to create unique visual effect. After all, it is a bit boring and mundane if we only use the images from the libraries. In this post, I would like to introduce a few tools which are pretty common to help …

Continue reading Scratch 3.0 – Several Tools to Enhance the Visual Effect of Your Game

The Video Sensing Could not Work in Scratch 3.0? – Allow Scratch to Visit Webcam First

If you are using Video Sensing to make interactive game in Scratch 3.0, you might meet the issue that the camera seems not being able to be turned on. Recently, I met this issue. I searched Scratch discussion forum and noticed someone had reported the same problem but no answer was given in the post, …

Continue reading The Video Sensing Could not Work in Scratch 3.0? – Allow Scratch to Visit Webcam First

LEGO Spike Prime – Explanation of Accelerometer Data and Line Graph Analysis

In the App of LEGO Spike Prime, there is an advanced unit category which creates different devices, logs and analyzes gyroscope or accelerometer data. In today's post, I will use the same model of "Build a Smart Kettlebell" project and introduce how to read and analyze the recorded accelerometer data. I will also update the …

Continue reading LEGO Spike Prime – Explanation of Accelerometer Data and Line Graph Analysis

LEGO Spike Prime – Use PID to Control A Self-balancing Robot and Some Key Points

On YouTube, I just accidentally found a video introducing a self-balanced robot controlled with PID. That is really amazing. However, when I tried to build the model and copied its code, I met some problems. It seems not as easy to get the robot keeping balanced as shown in the video. In this post, I …

Continue reading LEGO Spike Prime – Use PID to Control A Self-balancing Robot and Some Key Points

Which New Model to Choose From – LEGO Spike Prime or LEGO MindStorms Inventor?

In August of 2020, LEGO released a new version of LEGO MindStorms called LEGO MindStorms Inventor, which is released just a few months after the release of LEGO Spike Prime. So what is the difference between MindStorms Inventor and Spike Prime? Does that mean I have to upgrade my LEGO Spike Prime in order to …

Continue reading Which New Model to Choose From – LEGO Spike Prime or LEGO MindStorms Inventor?

Play LEGO Spike Prime – Upgrade Demo Project Security Box – Python Code

In my previous post, I introduced how to upgrade the model and programming blocks of the demo project - Security Box. In this post, I would "translate" the programming blocks into Python code. I would say it is an efficient way to get familiar with LEGO Spike Python module and improve your Python coding skills. …

Continue reading Play LEGO Spike Prime – Upgrade Demo Project Security Box – Python Code

Play LEGO Spike Prime – Upgrade Demo Project Security Box

In the building plans of LEGO Spike Prime software, we could find the building specification of a security box. When Left button is pressed, the box could be unlocked. However, if we want to design a more high-tech security box, simple lock/unlock functionality is not enough. On YouTube, we could find videos on how to …

Continue reading Play LEGO Spike Prime – Upgrade Demo Project Security Box