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. https://videopress.com/v/0yLzPzHa?preloadContent=metadata

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

First Experience of LEGO Spike Prime – Programming

Since its debut of April, 2020, LEGO Spike Prime has attracted much attention and many wonder if it will replace LEGO MindStorms sometime in future. In today's post, I would like to show our first experience of LEGO Spike Prime programming environment, and have a brief comparison with LEGO MindStorms EV3 programming. Drag-and-drop Coding Language …

Continue reading First Experience of LEGO Spike Prime – Programming