aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-02 21:36:46 +1000
committerquou <quou@disroot.org>2023-05-02 21:36:57 +1000
commitd3745895ca0107c705b2d89b8b80e254536dad86 (patch)
treee2ef2f199df915cf87f24592c20723b3bc23c2ae
parentc1efdf9b0875f2a39488a86cd838947a24fab9fc (diff)
Work on some sprites.
-rw-r--r--asset.c4
-rw-r--r--asset.h4
-rw-r--r--intermediate/bullet.bmpbin0 -> 2714 bytes
-rw-r--r--intermediate/char.bmpbin0 -> 8330 bytes
-rw-r--r--intermediate/usr.bmpbin67422 -> 67422 bytes
5 files changed, 6 insertions, 2 deletions
diff --git a/asset.c b/asset.c
index e6aafe5..b6e408b 100644
--- a/asset.c
+++ b/asset.c
@@ -6,7 +6,9 @@
#include "standard.h"
static const char* const asset_vpaths[] = {
- /* asset_id_usr */ "data/usr.img"
+ /* asset_id_usr */ "data/usr.img",
+ /* asset_id_char */ "data/char.img",
+ /* asset_id_bullet */ "data/bullet.img"
};
static struct {
diff --git a/asset.h b/asset.h
index 68a1e0b..e60ff4b 100644
--- a/asset.h
+++ b/asset.h
@@ -3,10 +3,12 @@
#include "render.h"
-#define bitmap_asset_count 1
+#define bitmap_asset_count 3
typedef enum {
asset_id_usr = 0,
+ asset_id_char,
+ asset_id_bullet,
asset_count
} Asset_ID;
diff --git a/intermediate/bullet.bmp b/intermediate/bullet.bmp
new file mode 100644
index 0000000..e6735ce
--- /dev/null
+++ b/intermediate/bullet.bmp
Binary files differ
diff --git a/intermediate/char.bmp b/intermediate/char.bmp
new file mode 100644
index 0000000..cb8d54d
--- /dev/null
+++ b/intermediate/char.bmp
Binary files differ
diff --git a/intermediate/usr.bmp b/intermediate/usr.bmp
index b1ea804..e5e8185 100644
--- a/intermediate/usr.bmp
+++ b/intermediate/usr.bmp
Binary files differ