init
This commit is contained in:
6
resources/bindings.ron
Normal file
6
resources/bindings.ron
Normal file
@@ -0,0 +1,6 @@
|
||||
(
|
||||
axes: {},
|
||||
actions: {
|
||||
"flap": [[Key(Space)]],
|
||||
},
|
||||
)
|
||||
@@ -1,4 +1,4 @@
|
||||
(
|
||||
title: "amethyst-cli-starter-2d",
|
||||
dimensions: Some((800, 600)),
|
||||
title: "test",
|
||||
dimensions: Some((432, 768)),
|
||||
)
|
||||
|
||||
BIN
resources/sprites/flappy.png
Normal file
BIN
resources/sprites/flappy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
42
resources/sprites/flappy.ron
Normal file
42
resources/sprites/flappy.ron
Normal file
@@ -0,0 +1,42 @@
|
||||
(
|
||||
texture_width: 512,
|
||||
texture_height: 512,
|
||||
sprites: [
|
||||
( // Daytime background
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 144,
|
||||
height: 256,
|
||||
),
|
||||
( // Nighttime background
|
||||
x: 146,
|
||||
y: 0,
|
||||
width: 144,
|
||||
height: 256,
|
||||
),
|
||||
( // Down Pipe
|
||||
x: 56,
|
||||
y: 323,
|
||||
width: 26,
|
||||
height: 160,
|
||||
),
|
||||
( // Up Pipe
|
||||
x: 84,
|
||||
y: 323,
|
||||
width: 26,
|
||||
height: 160,
|
||||
),
|
||||
( // Ground
|
||||
x: 292,
|
||||
y: 0,
|
||||
width: 168,
|
||||
height: 56,
|
||||
),
|
||||
( // Floppy
|
||||
x: 3,
|
||||
y: 490,
|
||||
width: 17,
|
||||
height: 13,
|
||||
)
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user