Game
Yamikari
9 years ago

Map Creation - for version 4.x


Heya all !, just wanted to share the syntax of .lv maps files for the game, since a map editor inst here yet :


Prerequisite

First of all the maps are contained in the Level folder, aswell as the LevelList.lst file containing a list of all the currently used level by the game (or the server).

To create a new map and add it to the game/server, you’ll just have to add the new filename to LevelList.lst between an < and an > : <example.lv>

Editing the file itself :

If you open an .lv file, the first line should look something like this :
Texture/tex2.png 33 22 8 3 25 3 5
Let’s break it down :

  • Texture/tex2.png is the texture pack used, at the moment there is only one texture pack, but if i create more in the future, or if people creates good ones, i could add them to the game package for more variety.

  • 33 22 is the width and the height of the map in number of tiles

  • 8 3 is the starting tile for the white player

  • 25 3 is the starting tile for the black player

  • 1 is the number of life
    In short : [TexturePack] [width] [height] [white x start] [white y] [black x start] [black y start] [number of lifes]

note:

  • at the start, the players will always be placed on the nearest solid tile under them, and won’t start flying

  • for texture pack, if the map on a remote server use a texture pack that a client doesn’t have, it wont download it, and the client will use the default texture pack.

  • if you want to create your custom texture pack, it doesn’t have to be the same resolution, it only needs to have the same 5*5 tiles structure.

For the body, a lv file looks like this :

		
			22 21 00 00 00 00 00 13 14
22 21 00 00 00 00 00 13 14
22 21 00 00 00 00 00 13 14
10 31 11 00 00 11 11 33 10
20 41 10 10 10 10 10 43 20
54 51 20 20 20 20 20 53 54
30 30 30 30 30 30 30 30 30
		
	

Each row match a row of tiles, and each number correspond to a tile :

5d0b98f28398a.png

The texture and the collision are linked, all the textured tiles are solid, except for the 11, which is the moving grass tile.

note :

  • 00 correspond to the air, and will remain empty, you could use 0 instead, but it would break the column alignment, which is helpful visually when building a map.

  • If you need to better understand the intended layout, you can take a look at some of the officials maps.

Now, hope some of you will have fun with that, share your creations in the comment, and cheers !



0 comments

Loading...

Next up

Fan art for Foolish I'm feeling kinda better so I drew this

We made a lot of improvements on the Freezing Plains visual. Things like pine trees, tiny bushes, some rocks, and others game props!

#IndieGame | #IndieDev | #GameDev | #PixelArt | #WaifuQuest | #WifeQuest | #screenshotsaturday

Heya there! I really wanted to show you all a little gameplay preview of the first boss fight i'm currently working on i hope you like it ^^

Protege el conocimiento, salva la historia. Guardian of Lore es un platformer 2D en el que debes luchar para mantener viva la memoria de la mitología latinoamericana. El juego llegará a Steam el 18 de mayo: https://steam.pm/app/1211740 #ScreenshotSaturday

The whole squad is here!

Interested? Follow me!

The Darkside Detective: A Fumble in the Dark is out TODAY! 🖱️Advanced pointing, clicking action 🖨️Very funny words! Loads of them! 👻6 sarcastic, spectral cases to solve

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!

Spaaaace~

These are background sprites I've created for a game I'm working on at school ^w^ Click on the post to see how the sprites connect. You won't regret it! (personally, I think it's pretty heheh)

Drawn in Piskel using my mouse. Whaddya think?

Auto-chess meets Clash Royale in an intense strategic battle. Outsmart your opponent, hide your play and crush their armies! Empire Builder just got another major update, check it out! https://gamejolt.com/games/EmpireBuilder/558901

I did this on my 3DS ^^ #Kirby