Now have a fully painting/pixelated female hand for the actions.
This commit is contained in:
parent
7af264e147
commit
d1f7337de4
8 changed files with 27 additions and 8 deletions
|
@ -9,14 +9,24 @@
|
||||||
"speed": 0.1,
|
"speed": 0.1,
|
||||||
"stationary": false
|
"stationary": false
|
||||||
},
|
},
|
||||||
"hand": {
|
"male_hand": {
|
||||||
"_type": "Animation",
|
"_type": "Animation",
|
||||||
"easing": 0,
|
"easing": 0,
|
||||||
"ease_rate": 0.5,
|
"ease_rate": 0.5,
|
||||||
"scale": 1.0,
|
"scale": 1.0,
|
||||||
"simple": false,
|
"simple": false,
|
||||||
"frames": 3,
|
"frames": 3,
|
||||||
"speed": 0.1,
|
"speed": 0.08,
|
||||||
|
"stationary": false
|
||||||
|
},
|
||||||
|
"female_hand": {
|
||||||
|
"_type": "Animation",
|
||||||
|
"easing": 0,
|
||||||
|
"ease_rate": 0.5,
|
||||||
|
"scale": 1.0,
|
||||||
|
"simple": false,
|
||||||
|
"frames": 3,
|
||||||
|
"speed": 0.08,
|
||||||
"stationary": false
|
"stationary": false
|
||||||
},
|
},
|
||||||
"lightning_animation": {
|
"lightning_animation": {
|
||||||
|
|
|
@ -230,8 +230,13 @@
|
||||||
"frame_width": 256,
|
"frame_width": 256,
|
||||||
"frame_height": 256
|
"frame_height": 256
|
||||||
},
|
},
|
||||||
"hand":
|
"male_hand":
|
||||||
{"path": "assets/hands/hands.png",
|
{"path": "assets/hands/male_hand.png",
|
||||||
|
"frame_width": 900,
|
||||||
|
"frame_height": 600
|
||||||
|
},
|
||||||
|
"female_hand":
|
||||||
|
{"path": "assets/hands/female_hand.png",
|
||||||
"frame_width": 900,
|
"frame_width": 900,
|
||||||
"frame_height": 600
|
"frame_height": 600
|
||||||
}
|
}
|
||||||
|
|
BIN
assets/hands/female_hand.png
Normal file
BIN
assets/hands/female_hand.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
Before Width: | Height: | Size: 58 KiB |
BIN
assets/hands/male_hand.png
Normal file
BIN
assets/hands/male_hand.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
|
@ -12,8 +12,8 @@ namespace gui {
|
||||||
MainUI::MainUI(sf::RenderWindow& window) :
|
MainUI::MainUI(sf::RenderWindow& window) :
|
||||||
$window(window),
|
$window(window),
|
||||||
$rayview(std::make_shared<Raycaster>(RAY_VIEW_WIDTH, RAY_VIEW_HEIGHT)),
|
$rayview(std::make_shared<Raycaster>(RAY_VIEW_WIDTH, RAY_VIEW_HEIGHT)),
|
||||||
$hand(textures::get_sprite("hand")),
|
$hand(textures::get_sprite("female_hand")),
|
||||||
$hand_anim(animation::load("hand"))
|
$hand_anim(animation::load("female_hand"))
|
||||||
{
|
{
|
||||||
$window.setVerticalSyncEnabled(VSYNC);
|
$window.setVerticalSyncEnabled(VSYNC);
|
||||||
$window.setFramerateLimit(FRAME_LIMIT);
|
$window.setFramerateLimit(FRAME_LIMIT);
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace gui {
|
||||||
|
|
||||||
if(name == "character_view") {
|
if(name == "character_view") {
|
||||||
$gui.set<Rectangle>(gui_id, {});
|
$gui.set<Rectangle>(gui_id, {});
|
||||||
$gui.set<Sprite>(gui_id, {"armored_knight"});
|
$gui.set<Sprite>(gui_id, {"peasant_girl"});
|
||||||
} else {
|
} else {
|
||||||
$gui.set<Rectangle>(gui_id, {});
|
$gui.set<Rectangle>(gui_id, {});
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,10 @@ function Build-Images {
|
||||||
# Build-Images -Source "Sprites" -pixel_count 6
|
# Build-Images -Source "Sprites" -pixel_count 6
|
||||||
# Build-Images -Source "Items" -pixel_count 2
|
# Build-Images -Source "Items" -pixel_count 2
|
||||||
# Build-Images -Source "Animations" -pixel_count 6
|
# Build-Images -Source "Animations" -pixel_count 6
|
||||||
Build-Images -Source "Hands" -pixel_count 2
|
Build-Images -Source "Hands" -pixel_count 6
|
||||||
|
|
||||||
|
magick montage -tile 3x1 -geometry +0+0 -background transparent .\assets\hands\female_hand_*.png .\assets\hands\female_hand.png
|
||||||
|
|
||||||
|
magick montage -tile 3x1 -geometry +0+0 -background transparent .\assets\hands\male_hand_*.png .\assets\hands\male_hand.png
|
||||||
|
|
||||||
cp -recurse -force C:\Users\lcthw\Pictures\Games\Renders\Raycaster\UI assets\ui
|
cp -recurse -force C:\Users\lcthw\Pictures\Games\Renders\Raycaster\UI assets\ui
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue