0 Members and 1 Guest are viewing this topic.
texture MAGTEST, 32, 32 // The NEW texture name is MAGTEST. It is going to be 32 units heigh and 32 units wide.{ XScale 0.5 // Used to tell Doom to scale the textures up, do not change! YScale 0.5 // Same as above Patch MAGNET9, 0, 0 // Put the image MAGNET9 at 0,0, which is the top left corner of the texture. WorldPanning // Something to do with offsets, I can't remember but KEEP IT}
texture MAGWIRES, 32, 512 // This texture will be 32 wide and 512 high. Don't forget, must be power of 2!{ XScale 0.5 YScale 0.5 Patch MAGNET5, 0, 0 // The patch to appear at the top Patch MAGNET6, 0, 32 // 32 pixels down the second patch is used. Patch MAGNET6, 0, 64 // Same as above Patch MAGNET6, 0, 96 Patch MAGNET6, 0, 128 Patch MAGNET6, 0, 160 Patch MAGNET6, 0, 192 Patch MAGNET6, 0, 224 Patch MAGNET6, 0, 256 Patch MAGNET6, 0, 288 Patch MAGNET6, 0, 320 Patch MAGNET6, 0, 352 Patch MAGNET6, 0, 384 Patch MAGNET6, 0, 416 Patch MAGNET6, 0, 448 Patch MAGNET7, 0, 480 // The patch to be used at the bottom WorldPanning }
How would I import a static decoration?Like, a bush or flowers or another thing that sits on one place for atmosphere.
texture BLOCK_1, 32, 32 // The NEW texture name is MAGTEST. It is going to be 32 units heigh and 32 units wide.{ XScale 0.5 // Used to tell Doom to scale the textures up, do not change! YScale 0.5 // Same as above Patch MAGNET9, 0, 0 // Put the image MAGNET9 at 0,0, which is the top left corner of the texture. WorldPanning // Something to do with offsets, I can't remember but KEEP IT}texture BLOCK_2, 32, 32 // The NEW texture name is MAGTEST. It is going to be 32 units heigh and 32 units wide.{ XScale 0.5 // Used to tell Doom to scale the textures up, do not change! YScale 0.5 // Same as above Patch BLOCK_2, 0, 0 // Put the image MAGNET9 at 0,0, which is the top left corner of the texture. WorldPanning // Something to do with offsets, I can't remember but KEEP IT}texture BLOCK_3, 32, 32 // The NEW texture name is MAGTEST. It is going to be 32 units heigh and 32 units wide.{ XScale 0.5 // Used to tell Doom to scale the textures up, do not change! YScale 0.5 // Same as above Patch BLOCK_3, 0, 0 // Put the image MAGNET9 at 0,0, which is the top left corner of the texture. WorldPanning // Something to do with offsets, I can't remember but KEEP IT}texture QUESTION, 32, 32 // The NEW texture name is MAGTEST. It is going to be 32 units heigh and 32 units wide.{ XScale 0.5 // Used to tell Doom to scale the textures up, do not change! YScale 0.5 // Same as above Patch QUESTION, 0, 0 // Put the image MAGNET9 at 0,0, which is the top left corner of the texture. WorldPanning // Something to do with offsets, I can't remember but KEEP IT}texture Bush, 32, 32 // The NEW texture name is MAGTEST. It is going to be 32 units heigh and 32 units wide.{ XScale 0.5 // Used to tell Doom to scale the textures up, do not change! YScale 0.5 // Same as above Patch Bush, 0, 0 // Put the image MAGNET9 at 0,0, which is the top left corner of the texture. WorldPanning // Something to do with offsets, I can't remember but KEEP IT}
Are those spaces I see in the lump names? Bad idea!
<pre><?php $files = scandir("."); foreach($files as $file) { $type = substr($file, strlen($file)-3, 3); if($type == 'png') { $img = getimagesize($file); $name = str_replace('.png', '', $file); $w = $img[0]; $h = $img[1];?>texture <?=$name?>, <?=$w?>, <?=$h?> { XScale 0.5 YScale 0.5 Patch <?=$name?>, 0, 0 WorldPanning}<? } }?></pre>