Browse Source

added belt extensions to the 3D model

belt_ext
Weird Constructor 2 months ago
parent
commit
035d9ace24
  1. BIN
      assets/belt.blend
  2. 2
      assets/rebuild.sh
  3. BIN
      assets/textures/belt.png
  4. BIN
      assets/textures/belt/belt_01_base.png
  5. BIN
      assets/textures/belt/belt_01_shadow.png
  6. BIN
      assets/textures/belt/belt_02_base.png
  7. BIN
      assets/textures/belt/belt_02_shadow.png
  8. BIN
      assets/textures/belt/belt_03_base.png
  9. BIN
      assets/textures/belt/belt_03_shadow.png
  10. BIN
      assets/textures/belt/belt_04_base.png
  11. BIN
      assets/textures/belt/belt_04_shadow.png
  12. BIN
      assets/textures/belt/belt_05_base.png
  13. BIN
      assets/textures/belt/belt_05_shadow.png
  14. BIN
      assets/textures/belt/belt_06_base.png
  15. BIN
      assets/textures/belt/belt_06_shadow.png
  16. BIN
      assets/textures/belt/belt_07_base.png
  17. BIN
      assets/textures/belt/belt_07_shadow.png
  18. BIN
      assets/textures/belt/belt_08_base.png
  19. BIN
      assets/textures/belt/belt_08_shadow.png
  20. BIN
      assets/textures/belt/belt_09_base.png
  21. BIN
      assets/textures/belt/belt_10_base.png
  22. BIN
      assets/textures/belt/belt_11_base.png
  23. BIN
      assets/textures/belt/belt_12_base.png
  24. BIN
      assets/textures/belt/belt_13_base.png
  25. BIN
      assets/textures/belt/belt_14_base.png
  26. BIN
      assets/textures/belt/belt_15_base.png
  27. BIN
      assets/textures/belt/belt_15_shadow.png
  28. BIN
      assets/textures/belt/belt_16_base.png
  29. BIN
      assets/textures/belt/belt_16_shadow.png
  30. BIN
      assets/textures/belt/belt_17_base.png
  31. BIN
      assets/textures/belt/belt_18_base.png
  32. BIN
      assets/textures/belt/belt_19_base.png
  33. BIN
      assets/textures/belt/belt_19_shadow.png
  34. BIN
      assets/textures/belt/belt_20_base.png
  35. BIN
      assets/textures/belt/belt_20_shadow.png
  36. BIN
      assets/textures/belt/belt_21_base.png
  37. BIN
      assets/textures/belt/belt_21_shadow.png
  38. BIN
      assets/textures/belt/belt_22_base.png
  39. BIN
      assets/textures/belt/belt_22_shadow.png
  40. BIN
      assets/textures/belt/belt_23_base.png
  41. BIN
      assets/textures/belt/belt_23_shadow.png
  42. BIN
      assets/textures/belt/belt_24_base.png
  43. BIN
      assets/textures/belt/belt_24_shadow.png
  44. BIN
      assets/textures/belt/belt_25_base.png
  45. BIN
      assets/textures/belt/belt_25_shadow.png
  46. BIN
      assets/textures/belt/belt_26_base.png
  47. BIN
      assets/textures/belt/belt_26_shadow.png
  48. BIN
      assets/textures/belt/belt_27_base.png
  49. BIN
      assets/textures/belt/belt_27_shadow.png
  50. BIN
      assets/textures/belt/belt_28_base.png
  51. BIN
      assets/textures/belt/belt_28_shadow.png
  52. BIN
      assets/textures/belt/belt_29_base.png
  53. BIN
      assets/textures/belt/belt_29_shadow.png
  54. BIN
      assets/textures/belt/belt_30_base.png
  55. BIN
      assets/textures/belt/belt_30_shadow.png
  56. BIN
      assets/textures/belt/belt_31_base.png
  57. BIN
      assets/textures/belt/belt_31_shadow.png
  58. BIN
      assets/textures/belt/belt_32_base.png
  59. BIN
      assets/textures/belt/belt_32_shadow.png
  60. BIN
      assets/textures/belt/belt_33_base.png
  61. BIN
      assets/textures/belt/belt_33_shadow.png
  62. BIN
      assets/textures/belt/belt_34_base.png
  63. BIN
      assets/textures/belt/belt_34_shadow.png
  64. BIN
      assets/textures/belt/belt_35_base.png
  65. BIN
      assets/textures/belt/belt_35_shadow.png
  66. BIN
      assets/textures/belt/belt_36_base.png
  67. BIN
      assets/textures/belt/belt_36_shadow.png
  68. 19
      src/sprites.rs

BIN
assets/belt.blend

Binary file not shown.

2
assets/rebuild.sh

@ -5,7 +5,7 @@ montage textures/lab1/underg_*_base.png textures/lab1/underg_*_shadow.png \
montage textures/processor/processor_*_base.png textures/processor/processor_*_shadow.png \
-background none -geometry 144x144 -tile 6x2 textures/processor.png
montage textures/belt/belt_*_base.png textures/belt/belt_*_shadow.png \
-background none -geometry 42x42 -tile 8x8 -depth 8 textures/belt.png
-background none -geometry 42x42 -tile 9x8 -depth 8 textures/belt.png
montage textures/lab1/lab1_*_base.png textures/lab1/lab1_*_shadow.png \
-background none -geometry 256x256 -tile 6x2 -depth 8 textures/lab1.png
montage textures/base/base_*_base.png textures/base/base_*_shadow.png \

BIN
assets/textures/belt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 39 KiB

BIN
assets/textures/belt/belt_01_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_01_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_02_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_02_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_03_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_03_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_04_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_04_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_05_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_05_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_06_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_06_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_07_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_07_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_08_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_08_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_09_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_10_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_11_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_12_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_13_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_14_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_15_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_15_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_16_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_16_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_17_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_18_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_19_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_19_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_20_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_20_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_21_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_21_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_22_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_22_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_23_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_23_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_24_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/textures/belt/belt_24_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_25_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_25_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_26_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_26_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_27_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_27_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_28_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_28_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_29_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_29_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_30_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_30_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_31_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_31_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_32_base.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/textures/belt/belt_32_shadow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/textures/belt/belt_33_base.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/textures/belt/belt_33_shadow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/textures/belt/belt_34_base.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/textures/belt/belt_34_shadow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/textures/belt/belt_35_base.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/textures/belt/belt_35_shadow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/textures/belt/belt_36_base.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/textures/belt/belt_36_shadow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

19
src/sprites.rs

@ -130,6 +130,21 @@ impl EntitySprite {
}
}
pub fn belt_ext_dir(dir: Dir) -> EntitySprite {
let idx = match dir {
Dir::R => 32,
Dir::L => 34,
Dir::D => 33,
Dir::U => 35,
};
Self {
collection_index: SC_BELT_IDX,
texture_index: idx,
shadow_offs: 32,
}
}
pub fn belt_dir(dir: Dir) -> EntitySprite {
let idx = match dir {
Dir::R => 0,
@ -141,7 +156,7 @@ impl EntitySprite {
Self {
collection_index: SC_BELT_IDX,
texture_index: idx,
shadow_offs: 32,
shadow_offs: 36,
}
}
@ -366,7 +381,7 @@ impl SpriteAssets {
.push(SpriteCollection::from_image(tiles, 32, 16, 16));
// SC_BELT_IDX 1
self.collections
.push(SpriteCollection::from_image(belt_tx, 42, 8, 8));
.push(SpriteCollection::from_image(belt_tx, 42, 9, 8));
// SC_LAB_IDX 2
self.collections
.push(SpriteCollection::from_image(lab1_tx, 256, 6, 2));

Loading…
Cancel
Save