# Light Gun Game Template

This is a template for old school lightgun games complete with random spawns, persistent enemy bodies and fall over railing animations. 

## "Documentation"

# Asset Flips

The easiest way to replace the images is to take an image, name it the same thing as the image (in the art folder) and simply replace it.  Make sure the size of your image 
matches what you are replacing or else you will have to resize the node itself in the editor

Sounds are a little more difficult.  You need to reimport them in the file menu.  You'd be better off just adding a new sound, then finding the node and pointing it to 
your new sound


# Making new levels

Make sure your master script inherets the base level script which handles keeping track of enemy and player hits

extends "res://scripts/BaseLevel.gd"

# Spawning enemies

load your enemy scene in the script like thislike this

```var free_standing = load('res://scenes/EnemyFreeStanding.tscn')```

Spawn the enemy like this

```
enemy = free_standing.instance()
initialize_enemy(enemy, $Player)
```

initialize_enemy is a method in the base level that connects the players target with the enemy's hitbox

# Scripting new enemies 

- Duplicate the Enemy.tscn scene
- Detatch the script
- Create your own script
- Inheret Enemy
```
extends "res://scripts/Enemy.gd"
```

DO NOT DUPLICATE EnemyFreeStanding or EnemyRail.  They point to the main enemy's assets and your changes will override it. 
Do not know how to undo this

