1st Round of Doodad Sprites + Improve Doodad Tool
* Improve the `doodad convert` command to convert a series of input images into multiple Frames of a Doodad: `doodad convert frame1.png frame2.png frameN.png output.doodad` * Add the initial round of dev-asset sprites for the default Doodads: * Button, Button-TypeB and Sticky Button * Red, Blue, Green and Yellow Locked Doors and Keys * Electric Door * Trapdoor Down * Add dev-assets/palette.json that defines our default doodad color palette. Eventually the JSON will be used by the `doodad` tool to give the layers meaningful names.
12
dev-assets/doodads/buttons/README.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Button Doodads
|
||||
|
||||
```bash
|
||||
doodad convert -t "Sticky Button" sticky1.png sticky2.png sticky-button.doodad
|
||||
doodad install-script sticky.js sticky-button.doodad
|
||||
|
||||
doodad convert -t "Button" button1.png button2.png button.doodad
|
||||
doodad install-script button.js button.doodad
|
||||
|
||||
doodad convert -t "Button Type B" typeB1.png typeB2.png button-typeB.doodad
|
||||
doodad install-script button.js button-typeB.doodad
|
||||
```
|
8
dev-assets/doodads/buttons/button.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
function main() {
|
||||
console.log("Sticky Button initialized!");
|
||||
|
||||
Events.OnCollide( function() {
|
||||
console.log("Touched!");
|
||||
Self.Canvas.SetBackground(RGBA(255, 153, 0, 153))
|
||||
})
|
||||
}
|
BIN
dev-assets/doodads/buttons/button1.png
Normal file
After Width: | Height: | Size: 769 B |
BIN
dev-assets/doodads/buttons/button2.png
Normal file
After Width: | Height: | Size: 728 B |
8
dev-assets/doodads/buttons/sticky.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
function main() {
|
||||
console.log("Sticky Button initialized!");
|
||||
|
||||
Events.OnCollide( function() {
|
||||
console.log("Touched!");
|
||||
Self.Canvas.SetBackground(RGBA(255, 153, 0, 153))
|
||||
})
|
||||
}
|
BIN
dev-assets/doodads/buttons/sticky1.png
Normal file
After Width: | Height: | Size: 767 B |
BIN
dev-assets/doodads/buttons/sticky2.png
Normal file
After Width: | Height: | Size: 726 B |
BIN
dev-assets/doodads/buttons/typeB1.png
Normal file
After Width: | Height: | Size: 736 B |
BIN
dev-assets/doodads/buttons/typeB2.png
Normal file
After Width: | Height: | Size: 695 B |
15
dev-assets/doodads/doors/README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Button Doodads
|
||||
|
||||
```bash
|
||||
doodad convert -t "Red Door" red1.png red2.png red-door.doodad
|
||||
doodad convert -t "Blue Door" blue1.png blue2.png blue-door.doodad
|
||||
doodad convert -t "Green Door" green1.png green2.png green-door.doodad
|
||||
doodad convert -t "Yellow Door" yellow1.png yellow2.png yellow-door.doodad
|
||||
|
||||
doodad convert -t "Red Key" red-key.png red-key.doodad
|
||||
doodad convert -t "Blue Key" blue-key.png blue-key.doodad
|
||||
doodad convert -t "Green Key" green-key.png green-key.doodad
|
||||
doodad convert -t "Yellow Key" yellow-key.png yellow-key.doodad
|
||||
|
||||
doodad convert -t "Electric Door" electric{1,2,3,4}.png electric-door.doodad
|
||||
```
|
BIN
dev-assets/doodads/doors/blue-key.png
Normal file
After Width: | Height: | Size: 732 B |
BIN
dev-assets/doodads/doors/blue1.png
Normal file
After Width: | Height: | Size: 787 B |
BIN
dev-assets/doodads/doors/blue2.png
Normal file
After Width: | Height: | Size: 743 B |
BIN
dev-assets/doodads/doors/electric1.png
Normal file
After Width: | Height: | Size: 977 B |
BIN
dev-assets/doodads/doors/electric2.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
dev-assets/doodads/doors/electric3.png
Normal file
After Width: | Height: | Size: 989 B |
BIN
dev-assets/doodads/doors/electric4.png
Normal file
After Width: | Height: | Size: 879 B |
BIN
dev-assets/doodads/doors/green-key.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
dev-assets/doodads/doors/green1.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
dev-assets/doodads/doors/green2.png
Normal file
After Width: | Height: | Size: 742 B |
BIN
dev-assets/doodads/doors/red-key.png
Normal file
After Width: | Height: | Size: 699 B |
BIN
dev-assets/doodads/doors/red1.png
Normal file
After Width: | Height: | Size: 739 B |
BIN
dev-assets/doodads/doors/red2.png
Normal file
After Width: | Height: | Size: 733 B |
BIN
dev-assets/doodads/doors/yellow-key.png
Normal file
After Width: | Height: | Size: 728 B |
BIN
dev-assets/doodads/doors/yellow1.png
Normal file
After Width: | Height: | Size: 778 B |
BIN
dev-assets/doodads/doors/yellow2.png
Normal file
After Width: | Height: | Size: 746 B |
35
dev-assets/doodads/palette.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"#000000": {
|
||||
"name": "black"
|
||||
},
|
||||
"#666666": {
|
||||
"name": "dark-grey"
|
||||
},
|
||||
"#999999": {
|
||||
"name": "grey"
|
||||
},
|
||||
"#CCCCCC": {
|
||||
"name": "light-grey"
|
||||
},
|
||||
"#FF0000": {
|
||||
"name": "red"
|
||||
},
|
||||
"#0099FF": {
|
||||
"name": "light-blue"
|
||||
},
|
||||
"#0000FF": {
|
||||
"name": "blue"
|
||||
},
|
||||
"#009900": {
|
||||
"name": "green"
|
||||
},
|
||||
"#999900": {
|
||||
"name": "gold"
|
||||
},
|
||||
"#4D391B": {
|
||||
"name": "brown"
|
||||
},
|
||||
"#8B652C": {
|
||||
"name": "light-brown"
|
||||
}
|
||||
}
|
5
dev-assets/doodads/trapdoors/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Button Doodads
|
||||
|
||||
```bash
|
||||
doodad convert -t "Trapdoor Down" down{1,2,3}.png trapdoor-down.doodad
|
||||
```
|
BIN
dev-assets/doodads/trapdoors/down1.png
Normal file
After Width: | Height: | Size: 1020 B |
BIN
dev-assets/doodads/trapdoors/down2.png
Normal file
After Width: | Height: | Size: 970 B |
BIN
dev-assets/doodads/trapdoors/down3.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
dev-assets/doodads/trapdoors/down4.png
Normal file
After Width: | Height: | Size: 859 B |