Last active
December 1, 2017 07:42
-
-
Save cobalthex/550509baf211bab2aedc05da7195f85d to your computer and use it in GitHub Desktop.
TK Lang examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ProjectileClass { | |
| Name: "Missile"; | |
| MuzzleVelocity: 500; | |
| DestroyIfOffscreen: True; | |
| IgnoreTrace: True; | |
| Range: 200; | |
| FadeEffect: { | |
| Effects: [ | |
| EntityEffect { | |
| Class: @.; #recursive reference | |
| Count: 1; | |
| Speed: 500; | |
| Spread: -10deg; | |
| }; | |
| EntityEffect { | |
| Class: @.; #recursive reference | |
| Count: 1; | |
| Speed: 500; | |
| Spread: 10deg; | |
| }; | |
| ]; | |
| } | |
| DestructionEffect: @"Effects/Splatter.fx.tk"; | |
| Animations: { | |
| Idle: { | |
| Sprite: { | |
| Texture: @"./DeathMachine.png"; | |
| }; | |
| Effect: @"Effects/trail.fx.tk"; | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GunClass { | |
| Projectile: @"Weapons/Projectiles/Missile.ent.tk"; | |
| MaxAmmo: 1000; | |
| RoundsPerBurst: 1; | |
| #ProjectilesPerRound: 6; | |
| MaxBursts: 1; | |
| ChargeTime: 0msec; | |
| DischargeTime: 100msec; | |
| #ErrorAngle: [-8deg 8deg]; | |
| DischargeEffect: { #move to spawn effect on projectile? | |
| Effects: [ | |
| ParticleEffect { | |
| Class: { | |
| Graphic: { | |
| Texture: @"./MuzzleFlash.png"; | |
| width: 48; | |
| height: 48; | |
| frameLength: 40msec; | |
| frameCount: 4; | |
| Center: true; | |
| }; | |
| Blend: BlendState.AlphaBlend; | |
| InitialSpeed: [0 0]; | |
| Drag: 1.3; | |
| lifetime: [160msec 160msec]; | |
| } | |
| Count: [3 12]; | |
| Spread: [-30deg 30deg]; | |
| }; | |
| SoundImpulse { | |
| Class: { | |
| sound: "open_fx.ogg"; | |
| gain: 0.1; | |
| } | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment