A Method to Encrypt the Answer in Scratch Programming

If you are designing a quiz project in Scratch, you will check if the user could answer the questions correctly. However, since all the published projects share the code, your user could always "see inside" of the project and get the answer, like the following code snippet. How could you test your user without getting …

Continue reading A Method to Encrypt the Answer in Scratch Programming

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?

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

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