Total servers: 3
The Whole Film Of Storage 24 (LieroX2 General Discussion) by Gloriagrub Today at 07:37:45 am
[Army of Glory] - [AoG] ([AoG]) by Morby May 22, 2013, 10:33:37 pm
- Like a Boss - (Clan threads) by Morby May 22, 2013, 10:30:55 pm
Old community member outreach (LieroX2 General Discussion) by JasonB May 21, 2013, 12:50:52 pm
Saturday Nights (Graveyard [RIP]) by MiLeC May 19, 2013, 01:10:07 am
Cruel Mod by iRod
Cruel v0.96 – 50lt
IP: 69.255.183.244
Game Mode: Death Match
Lives: 5
Max Kills: 0
Version: OpenLieroX 0.58 rc3
Players:
iRod(0 lives, 0 kills)
[CPU]I'm Not A Human(3 lives, 2 kills)
[CPU]I'm Not A Human(1 lives, 1 kills)
Kurko's testlab
Liero v1.0 – 20lt
IP: 91.156.42.210
Game Mode: Death Match
Lives: 5
Max Kills: 20
Version: OpenLieroX 0.58 rc3
Players:
mortars by lxalliance.net
Modern Warfare1.0 – 20lt
IP: 37.205.11.54
Game Mode: Death Match
Lives: 7
Max Kills: 23
Version: OpenLieroX 0.58 rc3
Players:
Pages: [1]   Go Down

Author Topic: gusanos level making question...  (Read 472 times)

Jallaboy

gusanos level making question...
« on: May 30, 2010, 11:09:34 am »
Ok so i wanted to make a gusanos level, because it has more possibilities than the lierox levels( that i've created plenty of ;) ).

Anyways i read on the wiki, and I understood most of it, but not this palette/index/ihaznoidea thing so can anyone explain this to me. :)

thx in advance.
Logged

DarkCharlie

Re: gusanos level making question...
« Reply #1 on: May 30, 2010, 03:26:41 pm »
Well, it's not really user-friendly :(

You can create a material image this way:
1) Create a new image
2) Choose 5 colors you want to use for the various types of material, you can choose any colors you like
3) Draw something with each of the colors and also fill the background with one of the colors and save the image as PNG 8
4) Open the image in IrfanView (or any other program that can view the palette), choose Image -> Palette -> Edit Palette. You should see a palette with 5 colors you have chosen.
5) The order of the colors in the palette decides the type of the material - first one is solid, second one is background air, third one is dirt, fourth one is special dirt and fifth one is special rock.
6) Reopen the image in your favorite editor and use these colors to draw the materials

Example:
1) I used Photoshop and created a new image and choose 5 colors:
Black (#000000)
Blue (#0000FF)
Brown (#884400)
Red (#FF0000)
Gray (#808080)

2) Choose pencil and draw one pixel black, one pixel blue, one pixel brown, one pixel red, one pixel gray.
3) Choose Flood Fill and fill the transparent area with blue
4) Choose File -> Save for Web (Alt + Shift + Ctrl + S)
5) As the format choose PNG-8, uncheck transparency, choose Adaptive palette. Photoshop also shows the color table, it should contain 5 colors and look like this:

6) Save & close the image in Photoshop
7) Open IrfanView, choose Image -> Palette -> Edit Palette and you should see something like this:

Alternatively, if you want to stay in Photoshop, you can choose Image -> Mode -> Color Table which shows the same info. You don't even need to close & reopen the file after saving.

8 ) In my case, the colors were assigned like this:
Red = Solid (Rock)
Black = Background (Air)
Gray = Dirt (Destructible)
Brown = Special dirt (Destructible. Worms can go through it but particles can't.)
Blue = Special rock (Solid. Worms can't go through it but particles can.)

9) Reopen the image and start designing the material
Logged

Jallaboy

Re: gusanos level making question...
« Reply #2 on: May 30, 2010, 03:36:32 pm »
thx for quick response, your solution looks promising.

Going to try it out now.

Thanks. :)

EDIT: tried it! IT WORKED PERFECTLY!!!

Thank you very, very, very, very, very much :)

If you made this tutorial now, it should, IMO, get sticked in a new thread :)
« Last Edit: May 30, 2010, 05:12:03 pm by Jallaboy »
Logged
Pages: [1]   Go Up
 

anything