Skip to content

Commit

Permalink
Engine now allows particles from modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrijaned committed Jan 1, 2018
1 parent ec6b171 commit 5543ffc
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static EffectConfig load(JsonValue node, EffectTypes types, GameColors co
String texName = node.getString("tex");
boolean floatsUp = node.getBoolean("floatsUp", false);
Color tint = cols.load(node.getString("tint"));
TextureAtlas.AtlasRegion tex = Assets.getAtlasRegion("core:" + texName + "Particle");
TextureAtlas.AtlasRegion tex = Assets.getAtlasRegion(texName + "Particle");
return new EffectConfig(effectType, sz, tex, floatsUp, tint);
}

Expand Down
8 changes: 4 additions & 4 deletions modules/core/assets/configs/abilitiesConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sloMo": {
"effect": {
"effectFile": "core:areaShipAbility",
"tex": "sloMo",
"tex": "core:sloMo",
"tint": "fire",
"size": 5
},
Expand All @@ -12,7 +12,7 @@
"knockBack": {
"effect": {
"effectFile": "core:knockBack",
"tex": "knockBack",
"tex": "core:knockBack",
"tint": "50 200 250"
},
"activatedSound": "core:knockBack"
Expand All @@ -21,7 +21,7 @@
"emWave": {
"effect": {
"effectFile": "core:areaShipAbility",
"tex": "emWave",
"tex": "core:emWave",
"tint": "0 255 0"
},
"activatedSound": "core:unshield"
Expand All @@ -30,7 +30,7 @@
"unShield": {
"effect": {
"effectFile": "core:knockBack",
"tex": "unShield",
"tex": "core:unShield",
"tint": "0 100 255"
},

Expand Down
48 changes: 24 additions & 24 deletions modules/core/assets/configs/projectilesConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.1,
"tex": "fire",
"tex": "core:fire",
"tint": "120 210 90"
},

Expand All @@ -28,7 +28,7 @@
"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.2,
"tex": "fire",
"tex": "core:fire",
"tint": "180 70 200"
},

Expand All @@ -48,15 +48,15 @@
"collisionEffectBg": {
"effectFile": "core:explSmoke",
"size": 0.6,
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.4,
"tex": "fire",
"tex": "core:fire",
"tint": "fire"
},

Expand All @@ -74,7 +74,7 @@
"collisionEffect": {
"effectFile": "core:spark",
"size": 0.5,
"tex": "spark",
"tex": "core:spark",
"tint": "fire"
}
},
Expand All @@ -91,7 +91,7 @@
"collisionEffect": {
"effectFile": "core:spark",
"size": 0.5,
"tex": "spark",
"tex": "core:spark",
"tint": "fire"
}
},
Expand All @@ -111,30 +111,30 @@

"trailEffect": {
"effectFile": "core:smoke",
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"bodyEffect": {
"effectFile": "core:flame",
"size": 0.15,
"tex": "fire",
"tex": "core:fire",
"tint": "fire"
},

"collisionEffectBg": {
"effectFile": "core:explSmoke",
"size": 0.6,
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.4,
"tex": "fire",
"tex": "core:fire",
"tint": "fire"
},

Expand All @@ -154,14 +154,14 @@
"collisionEffectBg": {
"effectFile": "core:explSmoke",
"size": 0.6,
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},
"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.4,
"tex": "fire",
"tex": "core:fire",
"tint": "fire"
},

Expand All @@ -178,23 +178,23 @@

"trailEffect": {
"effectFile": "core:smoke",
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"collisionEffectBg": {
"effectFile": "core:explSmoke",
"size": 0.3,
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"collisionEffect": {
"effectFile": "core:spark",
"size": 1,
"tex": "spark",
"tex": "core:spark",
"tint": "fire"
}
},
Expand All @@ -213,30 +213,30 @@

"trailEffect": {
"effectFile": "core:smoke",
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"bodyEffect": {
"effectFile": "core:flame",
"size": 0.15,
"tex": "fire",
"tex": "core:fire",
"tint": "fire"
},

"collisionEffectBg": {
"effectFile": "core:explSmoke",
"size": 0.6,
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.4,
"tex": "fire",
"tex": "core:fire",
"tint": "fire"
},

Expand All @@ -254,14 +254,14 @@

"trailEffect": {
"effectFile": "core:railTrail",
"tex": "techieTrail",
"tex": "core:techieTrail",
"tint": "white"
},

"collisionEffect": {
"effectFile": "core:spark",
"size": 0.5,
"tex": "spark",
"tex": "core:spark",
"tint": "fire"
}
},
Expand All @@ -288,14 +288,14 @@

"bodyEffect": {
"effectFile": "core:electricity2",
"tex": "electricity",
"tex": "core:electricity",
"tint": "white"
},

"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.2,
"tex": "fire",
"tex": "core:fire",
"tint": "white"
},

Expand All @@ -315,7 +315,7 @@
"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.8,
"tex": "fire",
"tex": "core:fire",
"tint": "20 255 20"
},

Expand Down
18 changes: 9 additions & 9 deletions modules/core/assets/configs/specialEffectsConfig.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
{
"smoke": {
"effectFile": "core:smoke",
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"fire": {
"effectFile": "core:fire",
"tex": "fire",
"tex": "core:fire",
"floatsUp": true,
"tint": "fire"
},

"electricity": {
"effectFile": "core:electricity",
"tex": "electricity",
"tex": "core:electricity",
"tint": "white"
},

"shipExplosionSmoke": {
"effectFile": "core:explSmoke",
"tex": "smoke",
"tex": "core:smoke",
"floatsUp": true,
"tint": "smoke"
},

"shipExplosionFire": {
"effectFile": "core:explFire",
"tex": "fire",
"tex": "core:fire",
"tint": "fire"
},

"asteroidDust": {
"effectFile": "core:explSmoke",
"tex": "fire",
"tex": "core:fire",
"tint": "dust"
},

"forceBeacon": {
"effectFile": "core:forceBeacon",
"tex": "forceBeacon",
"tex": "core:forceBeacon",
"tint": "white"
},

"starPortFlow": {
"effectFile": "core:starPortFlow",
"tex": "forceTail",
"tex": "core:forceTail",
"tint": "white"
},

"transcendentWork": {
"effectFile": "core:transcendentWork",
"tex": "forceTail",
"tex": "core:forceTail",
"tint": "white"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"effect": {
"effectFile": "core:flame",
"size": 0.3,
"tex": "smoke",
"tex": "core:smoke",
"tint": "fire"
},
"workSounds": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"effect": {
"effectFile": "core:flame",
"size": 0.07,
"tex": "smoke",
"tex": "core:smoke",
"tint": "fire"
},
"workSounds": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"effect": {
"effectFile": "core:flame",
"size": 0.3,
"tex": "fire",
"tex": "core:fire",
"tint": "hsb 140 20 65"
},
"workSounds": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"effect": {
"effectFile": "core:flame",
"size": 0.07,
"tex": "fire",
"tex": "core:fire",
"tint": "hsb 140 20 65"
},
"workSounds": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"effect": {
"effectFile": "core:smokeEngine",
"size": 0.07,
"tex": "smoke",
"tex": "core:smoke",
"tint": "smoke"
},
"workSounds": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"effect": {
"effectFile": "core:flame",
"size": 0.3,
"tex": "fire",
"tex": "core:fire",
"tint": "hsb 8 75 100"
},
"workSounds": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"effect": {
"effectFile": "core:flame",
"size": 0.07,
"tex": "fire",
"tex": "core:fire",
"tint": "hsb 8 75 100"
},
"workSounds": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"big": false,
"effect": {
"effectFile": "core:techieEngine",
"tex": "techieTrail",
"tex": "core:techieTrail",
"tint": "white"
},
"workSounds": [
Expand Down
Loading

0 comments on commit 5543ffc

Please sign in to comment.