Blogs


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

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

Use Scratch 3.0 to Make Scrolling Platformer Game – Part 4, Convert to Static Platformer Game

In my previous posts, I explained some key issues when developing a scrolling platformer game by following YouTube tutorial video clips. So how about designing a static platformer game? Static and scrolling platformer game have different characteristics, however, if you have developed a scrolling platformer game, it is pretty easy to convert the code of …

Continue reading Use Scratch 3.0 to Make Scrolling Platformer Game – Part 4, Convert to Static Platformer Game

Use Scratch 3.0 to Make Scrolling Platformer Game – Part 3 – Add Costumes to Your Player

In my previous posts, I summarized some key points when following Griffpatch’s online tutorial to design a scrolling platformer game. However, the Player in video clips is still of a rectangle shape, without any costume change. In many games, Player is a figure which has different poses of running, jumping or falling. How to add …

Continue reading Use Scratch 3.0 to Make Scrolling Platformer Game – Part 3 – Add Costumes to Your Player

Use Scratch 3.0 to Make Scrolling Platformer Game – Key Point Summary Part 2

In the previous post, I explained some confusing points in Griffpatch’s Scrolling Platformer Tutorial Part 1 to Part 5. I will continue explaining some key points in video clips of Part 6 to 10 in this post. If you have watched the video clips of Part 1 to Part 5, you might have understood the …

Continue reading Use Scratch 3.0 to Make Scrolling Platformer Game – Key Point Summary Part 2

Use Scratch 3.0 to Make Scrolling Platformer Game – Key Point Summary Part 1

On YouTube, we could always find some excellent and free resources. Like the following one made by Griffpatch, who taught how to design a platformer game on Scratch. The full tutorial contains 10 episodes and I strongly recommend you to follow them step by step. If you keep patient, you could design an amazing scrolling …

Continue reading Use Scratch 3.0 to Make Scrolling Platformer Game – Key Point Summary Part 1

Use Scratch 3.0 to Make Multiple Player Game – Some Key Points

On Scratch 3.0, you might notice there is one type of variable: cloud variable. This option is available in Create Variable dialog. However, if you are a “New Scratcher”, you will not see this option. So what is the purpose of using cloud variables? Usually we could store highest game score, the user name who …

Continue reading Use Scratch 3.0 to Make Multiple Player Game – Some Key Points

LEGO Spike Prime – “Translate” Programming Blocks into Python Code

In my previous post, I introduced how to set a mission for LEGO Spike Prime and implement the task with LEGO Spike programming blocks. As I mentioned before, Lego Spike Prime supports MicroPython pretty well. Most of the programming blocks could find corresponding Python functions. In this post, I will demonstrate how to “translate” my …

Continue reading LEGO Spike Prime – “Translate” Programming Blocks into Python Code

Play LEGO Spike Prime at Home – Another Mission for Your Robot Vehicle – Part 2

This is the second part of LEGO Spike Prime mission and focuses on the introduction of mechanical structure. If you would like to check how to use program to control your robot, you could refer to my previous post. Top View The following is the top view of the robot vehicle. Since the model needs …

Continue reading Play LEGO Spike Prime at Home – Another Mission for Your Robot Vehicle – Part 2

Play LEGO Spike Prime at Home – Another Mission for Your Robot Vehicle – Part 1

In my previous post, I introduced a way to design a mission for LEGO Spike Prime, so that even without the competition map of FLL or WRO, you could still sharpen your programming skills of LEGO robot vehicles at home. In today’s post, I would like to continue this method but introduce a different map …

Continue reading Play LEGO Spike Prime at Home – Another Mission for Your Robot Vehicle – Part 1

Learn Scratch 3.0 by Reading and Analyzing Others’ Project – Angry Bird Game

Did you play Angry Bird game on your phone? It was once popular and easy to get addicted. Now, let’s learn how to implement a simple version by using Scratch 3.0. The original project could be found at https://scratch.mit.edu/projects/286172798 Since the original project contains some Chinese characters, I replaced them with English names and you …

Continue reading Learn Scratch 3.0 by Reading and Analyzing Others’ Project – Angry Bird Game

Play LEGO Spike Prime – Design a Mission for Your Robot at Home – Part 2

In the previous post, I introduced how to design a mission for the Lego Spike Prime vehicle at home and explained a sample program in detail. In this post, I would like to introduce mechaical structure of the model. Top View The top view of the model is shown below. It has a front attachment …

Continue reading Play LEGO Spike Prime – Design a Mission for Your Robot at Home – Part 2

Play LEGO Spike Prime – Design a Mission for Your Robot at Home – Part 1

You might wonder if we could make LEGO Spike robot accomplish a task at home, just like it does on FLL or WRO competition maps. But what if we do not have those maps? Do we have to buy such maps to train LEGO robot vehicles? The answer is no. You could create unique missions …

Continue reading Play LEGO Spike Prime – Design a Mission for Your Robot at Home – Part 1

Learn Scratch by Reading and Analyzing Others’ Project – a GomoKu Game – Part 2

In the previous post, I explained the backdrop sprite, Map sprite and Cursor sprite. In this post, I will explain the Rule sprite, which contains core algorithm of this game – how to judge who wins the game. I will also analyze the code of several other auxilliary sprites. So let’s start! Rule Sprite There …

Continue reading Learn Scratch by Reading and Analyzing Others’ Project – a GomoKu Game – Part 2

Learn Scratch by Reading and Analyzing Others’ Project – a GomoKu Game – Part 1

Have you ever played Gomoku game? Its rule is simple. There are two types of chess pieces, white and black for two players, respectively. When either of the player connects own five chess pieces in a line, he/she wins. The chess pieces could be arranged in horizontal, vertical or diagonal directions. In this post, I …

Continue reading Learn Scratch by Reading and Analyzing Others’ Project – a GomoKu Game – Part 1

Design Platformer Game in Scratch 3.0 – Algorithm Behind the Sample Code – Part 2

In my previous post, I explained the sample code of a static platformer game. Now, let’s challenge ourselves for a scrolling platformer game. For this type of game, platform and other objects would move, while the main Player sprite would remain at a fixed position on the stage, as shown in this sample project. You …

Continue reading Design Platformer Game in Scratch 3.0 – Algorithm Behind the Sample Code – Part 2

Design Platformer Game in Scratch 3.0 – Algorithm Behind the Sample Code – Part 1

If you are a fan of Scratch 3.0, you must have played some of its platformer games. Platformer games (often simplified as platformer, or jump ‘n’ run) is a video game genre and subgenre of action games. Platformers are characterized by their heavy use of jumping and climbing to navigate the environment and reach their goal. Basically there are two types of platformer game in …

Continue reading Design Platformer Game in Scratch 3.0 – Algorithm Behind the Sample Code – Part 1

Learn Scratch by Reading and Analyzing Others’ Project – Tower Defense

If you read my recent posts, you will notice that I have analyzed several shooting games. A typical scenario of a shooting game is that you need to deploy multiple weapons from weapon library and those weapons will shoot out bullets. There are more than one ways to design weapon dragging and bullet shooting behaviors. …

Continue reading Learn Scratch by Reading and Analyzing Others’ Project – Tower Defense

First Experience of LEGO Spike Prime – the Mechanical Structure

In the previous post, I recorded the first experience of using LEGO Spike Prime programming tool. It is an App based on Scratch 3.0 block language. Compared to LEGO EV3-G block language, LEGO Spike App not only is easier to get started but also introduces more flexbility in programming. In this post, let me explain …

Continue reading First Experience of LEGO Spike Prime – the Mechanical Structure

Play LEGO Spike Prime – Upgrade the program of “Brain Game” Model

In previous post, I analyzed how to expand the skills of a demo model “Rain or Shine?”. In this post, I would like to analyze another model called “Brain Game”. You could find its step-by-step instruction from LEGO Spike Prime App: Unit Plans -> Life Hacks -> Brain Game. In the original program, the device …

Continue reading Play LEGO Spike Prime – Upgrade the program of “Brain Game” Model

Play LEGO Spike Prime – An Enhanced Version of Rain and Shine Model and Code Analysis

In today’s post, I would like to introduce a demo project contained in LEGO Spike Prime App. The project is located within Unit Plans -> Life Hacks -> Rain or Shine. You could find the step-by-step building instruction of the model there. I will focus on introducing the enhanced code and how to utilize LEGO …

Continue reading Play LEGO Spike Prime – An Enhanced Version of Rain and Shine Model and Code Analysis


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 )

Google photo

You are commenting using your Google 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.