Prison Architect

Prison Architect

Which side do you sit on?
Brutal Punishment or noble attempts to reform? From the Panopticon to the Supermax, this is your chance to publish or subscribe to the best prisons from the Architect community.
Unknown 1 14 Feb, 2022 @ 9:55am
Help with sprites
Hay I am wondering if some one can help me with coding side for sprites, my maths is a weak point so not helped with Power of 2 method or what ever. So basically I am trying to get a room icon to show up properly for lounge, but this not working for some reason as I dont know what size to put in. Can someone explain to me please. BEGIN "" Name RoomLounge x 15 y 11 y 3 h 3 RotateType 0 TopAligned false END
Currently have this so far. This is my first icon.
< >
Showing 1-5 of 5 comments
Xenoclides 6 26 Feb, 2022 @ 4:10pm 
The Interface icons in ui.png are 96px x 96x.

The x and y tell the game where in the png your icon is. w and h, then say how big the icon is.


This is done in divisions of 32. So each of the room icons in ui.png are 3x3 in size. (w 3 h 3)

The first icon in the ui.png is the Blank Icon. It's location in the png is x 0 y 0 and it's size is w 3 h 3

The next Icon to the right of 'Blank' is 'Foundations' Icon.
It's location x 3 y 0. Because you move 3 sections of 32 to the right.


A visual way to represent this:
Imagine the icons in the png are broken down into 3 sections

:gmod::gmod::gmod::facepunch::facepunch::facepunch:
:gmod::gmod::gmod::facepunch::facepunch::facepunch:
:gmod::gmod::gmod::facepunch::facepunch::facepunch:
Last edited by Xenoclides; 26 Feb, 2022 @ 4:13pm
Unknown 1 28 Feb, 2022 @ 4:43am 
Thank you! would you want to see content that im creating?
Unknown 1 28 Feb, 2022 @ 4:43am 
So the bottom row for 3rd g letter is 3 x 3 ?
Xenoclides 6 28 Feb, 2022 @ 1:07pm 
All the Gs together are one icon it's location would be x 0 y 0, it's size is w 3 h 3
Last edited by Xenoclides; 28 Feb, 2022 @ 1:08pm
Xenoclides 6 28 Feb, 2022 @ 1:17pm 
Every 32 Pixels in the UI.png is 1.

The first icon in the png would be 0 pixels across(x 0) and 0 pixels down(y 0)
It's 96px wide(w 3) and 96px tall(h 3)
Last edited by Xenoclides; 28 Feb, 2022 @ 1:18pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50