Exploring raycasters and possibly make a little "doom like" game based on it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
raycaster/scripts/build_assets.ps1

32 lines
855 B

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
cp -recurse -force C:\Users\lcthw\Pictures\Games\Renders\Raycaster\UI assets\ui