![]() |
SV Racer -- Editing Levels |
|
Missions are described as text files. You can edit these text files to change the levels, or create your own levels and insert them into the game. To find the level descriptions, right-click or control-click on the SV Racer icon, and choose "Show Package Contents": ![]() Then, in the folder that appears, navigate to the Resources folder, where you'll find the level descriptions: ![]() We'll use Mission 1 (level1.txt) as a starting point for understanding the level file format. It begins with the line: 9 30Each level begins with two numbers followed by a level description. These numbers indicate the number of lines in the level description, and the maximum number of characters per line. In this case, the description is 9 lines long, and each line has at most 30 characters. The number of characters also determines the size of the text. Mission 1 we'll start easy; just fly through way-gates as they are activated. take this chance to get used to your weapon and control systems. make sure you move out of the way after dropping a mine.Each line in the description will be centered, unless it is space-justified in the mission file. Text will be converted to the all-caps font, so capitilzation doesn't matter. Not every character is defined in the internal font. Unknown characters will be replaced with blank spaces. GoalEach level has any number of goals which you most pass or overcome. Objects designated as goals are proceeded by the world Goal. (This is case sensitive.) Goals must be passed in the order they are found in the level description. WayGate 0 0 10 0 0 0 1.5 8The waygate is the most basic world structure. When it is a goal, it will have animated green lines inside it. When a goal is passed, the next goal in the level is activated. In this level you must simply pass through 5 consecutive way gates. The parameters listed after the waygate are described below. Goal WayGate 0 0 40 0 0 0 1.5 8 Goal WayGate 0 0 70 0 0 0 1.5 8 Goal WayGate 0 0 100 0 0 0 1.5 8 Goal WayGate 0 0 130 0 0 0 1.5 8Besides goal objects, other objects can be placed in the world. Stars and Music are both special-effect objects, that you do not interact with while playing the game. Stars 0 0 65 6000 Music 99 16 4 48 4 0 30 50 30 0 30 45 30 0 30 47 30 0 30 49 30Yes, the music for each level is contained in the level description. If you turn off music in the game, this is the music it will mute. All other sounds created in the game are muted when you turn off sound. When you begin a new level, your ship is at (0, 0, 0). The negative x-axis is on your left, and the positive x-axis is on your right. You are looking down the positive z-axis, and the positive y-axis is above you. Here is a description of all possible world objects. Parameters have either a subscript f for a floating point number (eg 1.35 or -0.123) or d for a decimal number (eg 37 or -24).
|