-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 1. the default animation's state should always be set to 'loop'.
2. when any other animation (excluding 'die') stops, the default animation should commence.
- Loading branch information
1 parent
1151aba
commit acd4058
Showing
103 changed files
with
1,133 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
onCloned => { | ||
setXYpos MyAircraft.xpos, MyAircraft.ypos+5 | ||
show | ||
for { | ||
wait 0.04 | ||
step 10 | ||
if touching(Edge) { | ||
destroy | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import "math" | ||
onStart => { | ||
setXYpos 0, 0 | ||
for { | ||
wait 0.1 | ||
Bullet.clone | ||
} | ||
} | ||
|
||
onStart => { | ||
setXYpos 0, 0 | ||
Camera.setXYpos 0, 0 | ||
for { | ||
wait 0.03 | ||
setXYpos mouseX, mouseY | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"backdrops": [ | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "backdrop1", | ||
"path": "1.png" | ||
} | ||
], | ||
"map": { "width": 240, "height": 240 }, | ||
"run": { "width": 720, "height": 720 }, | ||
"zorder": [ | ||
"MyAircraft", | ||
"Bullet" | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"costumes": [ | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "bullet", | ||
"path": "30.png", | ||
"faceRight": 90, | ||
"x": 8, | ||
"y": 20 | ||
} | ||
], | ||
"costumeIndex": 0, | ||
"heading": 0, | ||
"isDraggable": false, | ||
"rotationStyle": "normal", | ||
"size": 0.65, | ||
"visible": false, | ||
"x": 230, | ||
"y": 185 | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"costumes": [ | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "hero", | ||
"path": "8.png", | ||
"x": 98, | ||
"y": 122 | ||
} | ||
], | ||
"costumeIndex": 0, | ||
"heading": 90, | ||
"isDraggable": false, | ||
"rotationStyle": "normal", | ||
"size": 0.45, | ||
"visible": true, | ||
"x": -131, | ||
"y": -161 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var ( | ||
MyAircraft MyAircraft | ||
Bullet Bullet | ||
) |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
onStart => { | ||
setXYpos 0,0 | ||
show | ||
wait 1 | ||
animate "die" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"backdrops": [ | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "backdrop1", | ||
"path": "1.png" | ||
} | ||
], | ||
"zorder": [ | ||
"Bullet", | ||
"SmallEnemy" | ||
] | ||
} |
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "1.wav" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"costumes": [ | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "bullet", | ||
"path": "30.png", | ||
"faceRight": 90, | ||
"x": 8, | ||
"y": 20 | ||
} | ||
], | ||
"costumeIndex": 0, | ||
"heading": 0, | ||
"isDraggable": false, | ||
"rotationStyle": "normal", | ||
"size": 0.65, | ||
"visible": false, | ||
"x": 230, | ||
"y": 185 | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"costumes": [ | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "normal", | ||
"path": "32.png", | ||
"x": 50, | ||
"y": 36 | ||
}, | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "die-0", | ||
"path": "33.png", | ||
"x": 50, | ||
"y": 36 | ||
}, | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "die-1", | ||
"path": "34.png", | ||
"x": 50, | ||
"y": 44 | ||
}, | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "die-2", | ||
"path": "35.png", | ||
"x": 56, | ||
"y": 50 | ||
}, | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "die-3", | ||
"path": "36.png", | ||
"x": 44, | ||
"y": 38 | ||
} | ||
], | ||
"costumeIndex": 0, | ||
"fAnimations": { | ||
"die": { | ||
"duration": 0.2, | ||
"from": "die-0", | ||
"to": "die-3", | ||
"isLoop": true | ||
} | ||
}, | ||
"defaultAnimation": "init", | ||
"heading": 90, | ||
"isDraggable": false, | ||
"rotationStyle": "normal", | ||
"size": 0.65, | ||
"visible": false, | ||
"x": -58, | ||
"y": -179 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var ( | ||
explode Sound | ||
Bullet Bullet | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import "math" | ||
onStart => { | ||
say "Hello Go+" | ||
updateInterval := 0.03 | ||
timer := 0.0 | ||
setXYpos 0, 0 | ||
for timer < 3{ | ||
timer += updateInterval | ||
wait updateInterval | ||
setXYpos mouseX, mouseY | ||
} | ||
timer=0.0 | ||
for timer < 3{ | ||
timer += updateInterval | ||
wait updateInterval | ||
setHeading timer*60 | ||
|
||
sin, _ := math.Sincos(timer*90 * math.Pi / 180) | ||
setSize(sin*0.5+1.5) | ||
} | ||
timer=0.0 | ||
for timer < 5{ | ||
timer += updateInterval | ||
wait updateInterval | ||
step 40*updateInterval | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"map": { | ||
"width": 480, | ||
"height": 360 | ||
}, | ||
"zorder": [ | ||
"Calf" | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"costumes": [ | ||
{ | ||
"bitmapResolution": 2, | ||
"name": "calf-0", | ||
"path": "1.png", | ||
"x": 55, | ||
"y": 50 | ||
} | ||
], | ||
"pivot":{ | ||
"x": 0, | ||
"y": -25 | ||
}, | ||
"costumeIndex": 0, | ||
"heading": 90, | ||
"isDraggable": false, | ||
"rotationStyle": "normal", | ||
"size": 1, | ||
"visible": true, | ||
"x": -59, | ||
"y": 2 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
onTouched => { | ||
destroy | ||
} | ||
|
||
onStart => { | ||
for { | ||
wait 0.3 | ||
clone | ||
} | ||
} | ||
|
||
onCloned => { | ||
setXYpos mouseX, mouseY | ||
show | ||
for { | ||
wait 0.04 | ||
step 10 | ||
if touching(Edge) { | ||
destroy | ||
} | ||
} | ||
} |
Oops, something went wrong.