Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //DefaultEnemies.dll; GetEnemy; 1
- //Debug enemy. It's hardly coded to move down with certain speed.
- //It starts defined number of defined attacks with a period defined...
- PEnemyData (Enemy.Data).Period := Dict.GetFloat ('Period', 1); //...here.
- PEnemyData (Enemy.Data).Time := PEnemyData (Enemy.Data).Period - Dict.GetFloat ('FirstPause', 0); //Pause before first attack
- PEnemyData (Enemy.Data).AttackPath := Dict.GetString ('AttackPath', '\Attacks\DefaultAttacks.bulletattacks'); //Here...
- PEnemyData (Enemy.Data).AttackName := Dict.GetString ('AttackName', 'SimpleLine'); //...and here we define which attack enemy should start.
- Enemy.SpritePath := Dict.GetString ('SpritePath', '\Enemies\Enemy.png'); //Enemy's frame...
- Enemy.SpriteName := Dict.GetString ('SpriteName', '0'); //...here.
- Enemy.Lifetime := - Dict.GetFloat ('MinLifetime', 0); //Minimum lifetime, similar to bullet's one.
- Enemy.MaxLifeTime := Dict.GetFloat ('MaxLifetime', 1); //That too.
- Enemy.HitboxExtent := Dict.GetFloat ('HitboxExtent', 16); //Similar to bullet's.
- Enemy.LockdownTime := Dict.GetFloat ('LockdownTime', 0.1); //Enemy can hit player too. It uses the same system as bullets do, that which involves "lockdown".
- Enemy.Durability := Dict.GetFloat ('Durability', 1); //It's like an initial hitpoint count; though durability can be fractional.
Advertisement
Add Comment
Please, Sign In to add comment