First cut of pulling out the relevant parts of my original game to make a little framework.
This commit is contained in:
commit
6a0c9e8d46
177 changed files with 18197 additions and 0 deletions
41
scripts/build_assets.ps1
Normal file
41
scripts/build_assets.ps1
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
Param (
|
||||
[string]$Colors=16,
|
||||
[string]$Size="256x256"
|
||||
)
|
||||
|
||||
|
||||
function Build-Images {
|
||||
param (
|
||||
[string]$source,
|
||||
[string]$pixel_count
|
||||
)
|
||||
|
||||
$files = Get-ChildItem -Path "C:\Users\lcthw\Pictures\Games\Renders\Raycaster\$source"
|
||||
$out_dir = ".\assets\" + $source.ToLower()
|
||||
mkdir -force $out_dir
|
||||
|
||||
foreach($file in $files) {
|
||||
$in_name = $file.Name
|
||||
$out_file = "$out_dir\$in_name"
|
||||
Write-Output "In file: $in_name"
|
||||
Write-Output "Out file: $out_file"
|
||||
Write-Output "Size: $Size"
|
||||
|
||||
.\scripts\pixelize.ps1 -InFile $file.FullName -OutFile $out_file -Colors $Colors -Pixel $pixel_count -Size $Size
|
||||
}
|
||||
}
|
||||
|
||||
# Build-Images -Source "Textures" -pixel_count 12
|
||||
# Build-Images -Source "Sprites" -pixel_count 6
|
||||
# Build-Images -Source "Items" -pixel_count 2
|
||||
# Build-Images -Source "Animations" -pixel_count 24
|
||||
# Build-Images -Source "Hands" -pixel_count 6
|
||||
Build-Images -Source "Boss2" -pixel_count 4
|
||||
# Build-Images -Source "Fixtures" -pixel_count 24
|
||||
|
||||
|
||||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue