VVVVVV
Ei tarpeeksi arvosteluja
New for 2.3: Per-level custom assets
Tekijältä Reese
A guide for level makers to using 2.3's new per-level custom asset loading, plus info about new Unicode support!
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Introduction
2.3 has a new super cool feature where you can load custom level assets on a per-level basis. It's very simple to use, and makes level distribution a lot simpler if your level has its own unique assets!

In other words: If you make custom graphics, sounds or music for your level, the game can now handle loading it automatically when you load your level. It'll unload once you exit your level.
Instructions
Method 1 of 2 - The asset folder
This one is better for active level development since you can swap and edit your files on the fly.

Make a folder in your levels directory with the same name as your level file, minus the .vvvvvv extension. For example, if your level is called milkcan.vvvvvv, then make a folder called milkcan. This folder should use the same structure as data.zip. In the end a sample directory structure for the milkcan level would be something like this:
VVVVVV/ +- levels/ +- milkcan/ | +- graphics/ | | +- sprites.png | | +- font.png | +- sounds/ | | +- coin.wav | | +- jump.wav | | +- jump2.wav | +- vvvvvvmusic.vvv +- milkcan.vvvvvv

If you've edited one of your files in this directory while your level is open in VVVVVV, simply strike the F9 key in the level editor to reload your resources — they should update right away!

Method 2 of 2 - Level ZIP archive
This one is the most convenient for distribution. You can pack your level data and its assets into one ZIP archive. Note, however, that levels stored in this format can't be loaded from the editor - only from the levels list.
Create a ZIP archive with the same name as your .vvvvvv level file, i.e. milkcan.zip for the above example. Put the .vvvvvv file at the root of the archive. Make sure that the graphics and sounds directories (as well as vvvvvvmusic.vvv, if you're using that) are at the root as well. In other words, make sure the ZIP structure is the same as VVVVVV's data.zip file.

Note about the "level.data.zip" method
Formerly, you could create a data.zip-formatted archive and place it next to your level file in the levels directory, named e.g. milkcan.data.zip or milkcan.zip. As of 2.4, this is no longer the case. Either method 1 or 2 must now be used.
Additional feature: Unicode!
VVVVVV 2.3 now supports Unicode behind the scenes. To use Unicode characters, you need a font.png with all the characters you want to use, and a font.txt alongside it in the graphics directory which contains a raw list of every character in the font.



I've made a font which pre-includes a lot of characters from European languages, Cyrillic, Greek and more (including some dingbats and assorted symbols), which you can find here[github.com]. (Note: you ONLY need the files font.png and font.txt.)

Put those files in your graphics directory in your level's asset structure. Now you can make your levels in whatever language you want, or even edit the font and use your own characters/symbols/dingbats!

P.S.: The future version 2.4[github.com] of VVVVVV has planned full localisation support, so the font will likely be pre-included with the game at that point.

Happy levelmaking!
1 kommenttia
LucasAny 20.8.2022 klo 5.41 
yes