Home
:
Book details
:
Book description
Description of
Ping pong game Alice3 3D animation: Educational programming language (Discover! How? Book 36)
From the "Introduction" of this book Ah! Uncle, it's a ping-pong game, isn't it? "Oh, have you done it?" Many times! But are you doing it alone? "Yeah, there's something I want to find out." Both hands are busy when doing alone! "If I'm careless, the ball will slip through." Pressed the wrong button? "No, even though I moved to the top, sometimes it jumped over." It looks like a superman, right? "Even underneath, it goes through the ground." The ball seems to know the underground pass, right? Is the ball soft? "This is just a picture, so it's neither hard nor soft." But when it hits the ceiling or the ground, it changes to be halved! "Hey! You noticed a good point!" "I'll talk about it later, but let's assume it as a soft-ball for now." Let's play ping pong with me with the soft-ball! "Oh, okay!" Overview: This is a book that explains how to make a very common ping pong game using Alice, an educational programming language. We tried to create it with Alice3 using the sample Pong of Duke University created with Alice2 as a hint. We have changed the operability, improved the procedure, added colors, and sounds, and so on. It's a well-known simple game, so there is no difficult logic, and we think it will be an affordable teaching material for those who want to work on Alice 3 from now on. The basics of Alice3, such as the configuration of the code editor screen, how to use the scene editor, and dragging the method to the editor area to create a program, are described in detail in the previous book "Tower of Hanoi". If you are new to Alice, we recommend you take a look. In Alice3, you can create a program with a cascade menu instead of keying the code. Therefore, it is possible to prevent basic input mistakes such as character input mistakes and grammatical mistakes. Cascade menus are a great input method, but they take some getting used to. However, it has fun to combine and complete like a jigsaw puzzle. In the "Afterword", we posted a story that we had a hard time creating this game, so please refer to it. The version of Alice3 used here is 3.6.0.3 + build 724. Table of contents Introduction Overview [1] Preparation of scene (1) Scene objects [2] Preparation for program creation (1) Property settings (2) Moving the paddle 1) Moving the right paddle 2) Moving the left paddle 3) Setting the movement range (3) Movement of the ball (4) Inversion of the ball 1) Left and right paddles 2) Ceiling, ground 3) Countermeasures against problems [3] Main program (1) Start of the game (2) Change the speed of the ball (3) Judgment of the end of the game (4) Restart [4] Incidental matters (1) Count the number of times (2) Random start (3) Sound 1) Sound when hit 2) Sound when not hit 3) Background sound Afterword Read more