--- title: "Flying Bird" id: 76433 type: "computer_media" slug: "flying-bird" url: "http://localhost/computer_media/flying-bird/" markdown_url: "http://localhost/computer_media/flying-bird.md" published_at: "2026-11-11T08:02:44+00:00" modified_at: "2026-11-11T08:02:44+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/flying-bird-1.png" excerpt: "A small ZX81 animation: a two-character bird flaps its wings and flutters at random around the screen." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Mike Hastie" slug: "mike-hastie" taxonomy: "indiv" url: "http://localhost/indiv/mike-hastie/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" media_type: "Program" programmers: - name: "Mike Hastie" slug: "mike-hastie" taxonomy: "indiv" url: "http://localhost/indiv/mike-hastie/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Flying%20Bird%20%281982%29%28Hastie%2C%20Mike%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/flying-bird-1.png" - url: "http://localhost/wp-content/uploads/2026/11/flying-bird-2.png" article_media: - id: 65584 title: "Flying Bird" type: "article" url: "http://localhost/article/flying-bird/" media_type_tags: "Graphics" license: false --- # Flying Bird The bird is drawn with two graphic characters that alternate to make it flap, and it moves a step in a random direction each time. As printed it does not check the screen edges, so sooner or later it flies off and the program stops with report B; RUN starts it again. The listing was printed on CAI’s 40-column printer, which adds leading zeros to the line numbers and extra spaces; those are left out of the download. Published in Syntax July 1982 ([Flying Bird](https://timexsinclair.com/article/flying-bird/)). ## Source Code ``` 5 REM FLYING BIRD 10 LET A=10 20 LET B=11 30 REM USE SHIFTED GRAPHIC "T" AND "Y" FOR BIRD 40 PRINT AT A,B;" ▞▚ " 45 PAUSE 15 50 PRINT AT A,B;" ▚▞ " 55 PAUSE 15 60 PRINT AT A,B;" " 70 LET C=INT (RND*2+1) 80 LET D=INT (RND*2+1) 90 IF C=1 THEN LET A=A+1 100 IF D=1 THEN LET B=B+1 110 IF C=2 THEN LET A=A-1 120 IF D=2 THEN LET B=B-1 130 GOTO 40 ```