Dino Simplified - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html) +--- Forum: NaaLaa 7 Code (https://www.naalaa.com/forum/forum-4.html) +--- Thread: Dino Simplified (/thread-17.html) |
Dino Simplified - 1micha.elok - 11-28-2023 Running Dino ( inspired by the Dino in Chrome browser ) in a very very simplified version. This simplified version is only an animated one. Here is the structure of the program : 1. Initialization -load image : ground -load image : dino 2. Main Program (Looping) -define ESC key to quit -moving background -our main character :-) .... the one and only 'Dino' It still needs improvement on these features that haven't been implemented yet : - Animated running dino - Jump over obstacle / cactus - Avoid a flying bird - etc. You are most welcome if you are interested to improve this very simple 'Running Dino' It's better to start with a simplified version to understand the logic before making it more sophisticated Note : this code below has used 'set redraw off' .... 'redraw' to avoid flickering graphics as it was suggested by Marcus on the '1945 simplified' post / thread. Code: 'INITIALIZATION |