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

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

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

Learn Scratch by Reading and Analyzing Others’ Project – Airplane Shooting Game Part 3

This is the last part of airplane shooting game. In the previous posts, I have explained the core sprites. In this post, I will introduce two auxilliary spirtes which are supposed to enhance the visual effects of the game. Powerups Sprite This sprite has two functions - as a health booster or a protective shield. …

Continue reading Learn Scratch by Reading and Analyzing Others’ Project – Airplane Shooting Game Part 3

Learn Scratch 3.0 – Two Ways to Create Sprite Card

When we play Scratch game, sometimes we need to choose a game weapon from a library. In this post, I will use one example to demonstrate this functionality. In the following demo project Plant and Zombie, after the user clicks the Peashooter Card, he/she could drag Peashooter and put it to a random position on …

Continue reading Learn Scratch 3.0 – Two Ways to Create Sprite Card