This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MySpaceship S1; | |
| AllienSpaceship A1, A2, A3; | |
| float x = 30; | |
| int counter; | |
| void setup() { | |
| size(400, 400); | |
| counter = 0; | |
| S1 = new MySpaceship(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Packman p1; | |
| Meal m1; | |
| float distance; | |
| void setup() { | |
| size(400, 400); | |
| p1 = new Packman(); | |
| m1 = new Meal(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ball b1, b2, b3, b4; | |
| void setup() { | |
| size(400, 400); | |
| b1 = new Ball(); | |
| b2 = new Ball(); | |
| b3 = new Ball(); | |
| b4 = new Ball(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup() { | |
| size(800, 800); | |
| } | |
| //Данные для рисования дома | |
| // >>> Вводим переменные: ширина и высота дома | |
| // .. Высота дома высчитывается от ширины в «золотой пропорции» | |
| float houseWidth = 150; | |
| float houseHeight = houseWidth / 1.618033981; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int count = 3; | |
| void setup (){ | |
| size(800, 800); | |
| frameRate(60); | |
| } | |
| void draw(){ | |
| if (count >= 1){ | |
| background(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup(){ | |
| size(600, 400); | |
| } | |
| int x = 20, y = 250; | |
| PImage explosion; | |
| void draw() { | |
NewerOlder