Skip to content
annacrombie edited this page Mar 5, 2015 · 7 revisions

#weap.dat

This file allows users to easily modify the weapons of the game.

##Variables and their meanings ####weapon_name

This is an up-to 6 character name for your weapon, it will be displayed in the status box in the upper right-hand corner of the screen.

####weapon_damage

This is the blast "radius" of the explosion when the projectile hits. It basically determines how large the explosion will be. Numbers smaller than 3 do almost nothing and numbers larger than 11 start to act a little strangely. Odd numbers work better because then the blast can be centered.

####weapon_speed

This is the initial velocity used in the physics engine to calculate the trajectory of the shot. Warning, large numbers (e.g. 50) may break the game.

####weapon_time

This is how long the loop that moves the shot sleeps before the next iteration i.e., how quickly the projectile moves. If you set it to 0 it will go as fast as it can on your machine.

####weapon_type

As of right now, this can either be split or normal, if the type is split then the projectile will split into 3 projectiles upon reaching the max height in its trajectory. If the type is normal, well, it doesn't split.

####weapon_ammo

This is how much ammunition the shop gives you when you buy the weapon. It can be thought of as the max ammo of the weapon

####weapon_icon_r

This is the three-character, right facing icon of your weapon. When you switch weapons in the game, an icon of the weapon appears, facing either right or left depending on what the angle of your cannon is set to. Most characters that come in pairs, e.g. ( and ), { and }, [ and ], < and >, etc... will be flipped for the left facing icon. For example, if you set the right facing icon to be {{> then the left facing icon will be <}}.

####weapon_shot

This is the character used for the actual projectile.

####weapon_cost

This is simply how many points the weapon will cost in the shop.

##Adding Entries These all need to be placed in the same position in each array, e.g. "cannon" is the first item in the weapon_name array, therefore for the first value of all the other arrays are what modify it. Although not necessary, quoting each entry is highly recommended, with either single or double quotes.

weapon_name=(
    "cannon"
)
weapon_damage=(
    "3"
)
weapon_ammo=(
    "45"
)
weapon_icon_r=(
    "+--"
)

etc...

Clone this wiki locally