Codey Rocky has a built-in IR proximity sensor so it can sense objects. We rely on this feature to control the Codey Rocky sprite on the stage, helping it avoid flames.
Gameplay: Click the green flag icon. Press button A on Codey Rocky to start the game. Move your hand or an object close to the IR proximity sensor to make the sprite jump over flames. The game is over once the sprite touches a flame.
If you need the source code, you can click into 'Source Code' to view it.
[ Ссылка ]
![](https://i.ytimg.com/vi/KcoHhFiMJEg/maxresdefault.jpg)