Add "skeletal-animation-demo" example for Skeleton object

This commit is contained in:
Florian Rival
2019-09-19 23:06:55 +01:00
parent 12c5df67fa
commit 1e48ffb84b
11 changed files with 6069 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1 @@
Example of a character animated using a skeletal animation based on Dragon Bones. This is a demo based on an experimental object. Be sure to read the documentation about this as it needs work to be maintained for use in large games.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"SubTexture":[{"frameY":0,"y":234,"frameWidth":112,"frameX":0,"frameHeight":210,"width":111,"height":209,"name":"parts/tailTip","x":456},{"width":112,"y":234,"height":86,"name":"parts/armUpperL","x":340},{"width":48,"y":859,"height":80,"name":"parts/armL","x":373},{"width":96,"y":922,"height":78,"name":"parts/handL","x":1},{"frameY":0,"y":677,"frameWidth":204,"frameX":0,"frameHeight":180,"width":203,"height":180,"name":"parts/legL","x":238},{"frameY":0,"y":397,"frameWidth":236,"frameX":0,"frameHeight":348,"width":235,"height":347,"name":"parts/body","x":1},{"width":216,"y":397,"height":278,"name":"parts/tail","x":238},{"width":208,"y":746,"height":174,"name":"parts/clothes1","x":1},{"width":124,"y":677,"height":282,"name":"parts/hair","x":443},{"frameY":0,"y":1,"frameWidth":338,"frameX":0,"frameHeight":394,"width":337,"height":394,"name":"parts/head","x":1},{"width":28,"y":961,"height":46,"name":"parts/eyeL","x":459},{"frameY":0,"y":961,"frameWidth":38,"frameX":0,"frameHeight":58,"width":37,"height":58,"name":"parts/eyeR","x":420},{"frameY":0,"y":1,"frameWidth":180,"frameX":0,"frameHeight":232,"width":180,"height":231,"name":"parts/legR","x":340},{"width":160,"y":859,"height":94,"name":"parts/armUpperR","x":211},{"frameY":0,"y":941,"frameWidth":46,"frameX":0,"frameHeight":78,"width":45,"height":77,"name":"parts/armR","x":373},{"width":98,"y":322,"height":58,"name":"parts/handR","x":340},{"frameY":0,"y":955,"frameWidth":120,"frameX":0,"frameHeight":36,"width":119,"height":36,"name":"parts/beardL","x":237},{"width":136,"y":955,"height":36,"name":"parts/beardR","x":99}],"width":1024,"height":1024,"name":"dragon","imagePath":"dragon_tex.png"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@@ -1,7 +1,7 @@
import indexHTML from './GDJSindex.html.js';
const gdjsRoot =
'https://s3-eu-west-1.amazonaws.com/gdevelop-resources/GDJS-5.0.0-beta79';
'https://s3-eu-west-1.amazonaws.com/gdevelop-resources/GDJS-5.0.0-beta80';
export const findGDJS = cb => {
return cb({

View File

@@ -102,6 +102,7 @@ const exampleNames = [
'shoot-bullets',
'shooting-bullets-explanation',
'simple-space-shooter',
'skeletal-animation-demo',
'snap-object-to-grid',
'space-invaders',
'space-shooter',

View File

@@ -3240,6 +3240,51 @@ module.exports = {
}
]
},
"skeletal-animation-demo": {
"description": "Example of a character animated using a skeletal animation based on Dragon Bones. This is a demo based on an experimental object. Be sure to read the documentation about this as it needs work to be maintained for use in large games.\n",
"usedExtensions": [
{
"fullName": "Skeleton",
"name": "SkeletonObject"
},
{
"fullName": "Sprite",
"name": "Sprite"
},
{
"fullName": "Platform Behavior",
"name": "PlatformBehavior"
},
{
"fullName": "Scene management features",
"name": "BuiltinScene"
},
{
"fullName": "Keyboard features",
"name": "BuiltinKeyboard"
},
{
"fullName": "Text object",
"name": "TextObject"
},
{
"fullName": "Primitive drawing",
"name": "PrimitiveDrawing"
},
{
"fullName": "Standard events",
"name": "BuiltinCommonInstructions"
},
{
"fullName": "Variable features",
"name": "BuiltinVariables"
},
{
"fullName": "Base object",
"name": "BuiltinObject"
}
]
},
"snap-object-to-grid": {
"description": "Example showing how to create a grid and have objects snapped to the grid.",
"usedExtensions": [

View File

@@ -89,6 +89,7 @@ import shootBulletInParabola from '../fixtures/shoot-bullet-in-parabola/shoot-bu
import shootBullets from '../fixtures/shoot-bullets/shoot-bullets.json';
import shootingBulletsExplanation from '../fixtures/shooting-bullets-explanation/shooting-bullets-explanation.json';
import simpleSpaceShooter from '../fixtures/simple-space-shooter/simple-space-shooter.json';
import skeletalAnimationDemo from '../fixtures/skeletal-animation-demo/skeletal-animation-demo.json';
import snapObjectToGrid from '../fixtures/snap-object-to-grid/snap-object-to-grid.json';
import spaceInvaders from '../fixtures/space-invaders/space-invaders.json';
import spaceShooter from '../fixtures/space-shooter/space-shooter.json';
@@ -284,9 +285,11 @@ export default class BrowserProjectOpener {
} else if (url === 'example://shoot-bullets') {
return Promise.resolve(shootBullets);
} else if (url === 'example://shooting-bullets-explanation') {
return Promise.resolve(simpleSpaceShooter);
} else if (url === 'example://simple-space-shooter') {
return Promise.resolve(shootingBulletsExplanation);
} else if (url === 'example://simple-space-shooter') {
return Promise.resolve(simpleSpaceShooter);
} else if (url === 'example://skeletal-animation-demo') {
return Promise.resolve(skeletalAnimationDemo);
} else if (url === 'example://snap-object-to-grid') {
return Promise.resolve(snapObjectToGrid);
} else if (url === 'example://space-invaders') {

File diff suppressed because it is too large Load Diff