Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage {
- backdrop White("gallery:General/White")
- let dblist = [];
- function Draw(Actor) {
- for(let i = 1; i <= Math.randomBetween(5, 20); i++) {
- Actor.nextCostume();
- this.wait(0.1);
- }
- }
- when stage.keyPressed("space") {
- //TODO
- }
- when stage.started {
- dblist = [];
- for(let i = 1; i <= 5; i++) {
- dblist.push(0);
- }
- }
- actor Fruit {
- costume Apple("gallery:Objects/Apple Idle")
- costume Banana("gallery:Objects/Banana Idle")
- costume Orange("gallery:Objects/Orange Idle")
- costume Raspberry("gallery:Objects/Raspberry Idle")
- when stage.started {
- this.size = 250;
- this.setPosition(100,0);
- }
- }
- actor Circle {
- costume Red("gallery:Objects/Ring Red")
- costume Blue("gallery:Objects/Ring Blue")
- when stage.started {
- this.setPosition(-300, -70);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement