|
| 1 | +{ |
| 2 | + "planes": [ |
| 3 | + { |
| 4 | + "type": "primary", |
| 5 | + "format": "DRM_FORMAT_RGB565", |
| 6 | + "image": "parallax0.png", |
| 7 | + "text": { |
| 8 | + "str": "3D Parallax Animation", |
| 9 | + "x": "physicalw(520)", |
| 10 | + "y": "physicalh(60 + 24)", |
| 11 | + "color": "0xffffffff", |
| 12 | + "size": "physicalw(24)" |
| 13 | + } |
| 14 | + }, |
| 15 | + { |
| 16 | + "type": "overlay", |
| 17 | + "index": 1, |
| 18 | + "x": 0, |
| 19 | + "y": "physicalh(300)", |
| 20 | + "width": "physicalw(1600)", |
| 21 | + "height": "physicalh(180)", |
| 22 | + "format": "DRM_FORMAT_ARGB8888", |
| 23 | + "image": "parallax2.png", |
| 24 | + "pan-x": 0, |
| 25 | + "pan-y": 0, |
| 26 | + "pan-width": "physicalw(800)", |
| 27 | + "pan-height": "physicalh(180)", |
| 28 | + "move-type": ["panx-warp"], |
| 29 | + "move-panxspeed": 2 |
| 30 | + }, |
| 31 | + { |
| 32 | + "enabled": true, |
| 33 | + "type": "overlay", |
| 34 | + "format": "DRM_FORMAT_ARGB8888", |
| 35 | + "index": 0, |
| 36 | + "x": "(SCREEN_WIDTH / 2) - (physicalw(113) / 2)", |
| 37 | + "y": "physicalh(315)", |
| 38 | + "width": "physicalw(1000)", |
| 39 | + "height": "physicalh(260)", |
| 40 | + "image": "ninja.png", |
| 41 | + "sprite-x": "physicalw(15)", |
| 42 | + "sprite-y": "physicalh(122)", |
| 43 | + "sprite-width": "physicalw(113)", |
| 44 | + "sprite-height": "physicalh(122)", |
| 45 | + "sprite-count": 6, |
| 46 | + "sprite-speed": 4, |
| 47 | + "move-type": ["sprite"] |
| 48 | + }, |
| 49 | + { |
| 50 | + "enabled": false, |
| 51 | + "type": "overlay", |
| 52 | + "format": "DRM_FORMAT_ARGB8888", |
| 53 | + "index": 1, |
| 54 | + "x": 350, |
| 55 | + "y": 320, |
| 56 | + "width": 600, |
| 57 | + "height": 481, |
| 58 | + "image": "mouse.png", |
| 59 | + "sprite-x": 0, |
| 60 | + "sprite-y": 97, |
| 61 | + "sprite-width": 120, |
| 62 | + "sprite-height": 97, |
| 63 | + "sprite-count": 8, |
| 64 | + "sprite-speed": 6, |
| 65 | + "move-type": ["sprite"] |
| 66 | + }, |
| 67 | + { |
| 68 | + "enabled": false, |
| 69 | + "type": "overlay", |
| 70 | + "format": "DRM_FORMAT_ARGB8888", |
| 71 | + "index": 1, |
| 72 | + "x": 350, |
| 73 | + "y": 320, |
| 74 | + "width": 600, |
| 75 | + "height": 481, |
| 76 | + "image": "mouse.png", |
| 77 | + "sprite-x": 0, |
| 78 | + "sprite-y": 0, |
| 79 | + "sprite-width": 120, |
| 80 | + "sprite-height": 97, |
| 81 | + "sprite-count": 2, |
| 82 | + "sprite-speed": 10, |
| 83 | + "move-type": ["sprite"] |
| 84 | + } |
| 85 | + ] |
| 86 | +} |
0 commit comments