Codey Rocky python scripts
Please note: the files only contain Python scripts, no Scratch blocks!
Tetris.mblock is a minified version of the old Tetris game. Use the A and B buttons to move the block and the C button to rotate it or to restart the game. You can also tilt Codey left and right to rotate the block.
Snake.mblock is the good old Snake game. Use the A and B buttons to change the snake direction and the C button to stop/restart the game.
Weather.mblock is a good example of IoT - it shows weather forecast using data from the OpenWeatherMap REST API. You have to register on the openweathermap.org web page in order to get an API key. A free of charge subscription allows you to make up to 1000 calls per day or up to 60 calls per minute. Finally enter settings for WiFi network access, API KEY and GPS location in the mblock file.
Have fun! 😜