-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#builder#300 default animtion bug #304
Closed
JiepengTan
wants to merge
8
commits into
goplus:main
from
JiepengTan:#builder#300_default_animtion_bug
Closed
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
70728e4
animation support mutil channel
JiepengTan 2dc96b6
support playing animation while performing actions: gliding, moving, …
JiepengTan 1538a94
just apply the animation result; there's no need to add the start value.
JiepengTan cc2b0ed
fixed turnTo (left|right) bug
JiepengTan f57e13a
fixed extra animation custome index error
JiepengTan 885578c
fix: Unexpected behavior of RotationStyle
JiepengTan 1151aba
auto set animation.aniType when calling step turnto
JiepengTan acd4058
fix: 1. the default animation's state should always be set to 'loop'.
JiepengTan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no default animation (the sprite has its current costume). We should use the "current costume" of sprite instead of the last costume of the animation?