Skip to content

Commit

Permalink
drawer and sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
uujuju1 committed May 6, 2022
1 parent 3955bcf commit f16a40a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sprites/units/carmanite/weapons/expo-weapon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name: "oblivion"
author: "Uujuju"
main: "oblivion.ProjectOblivion"
description: "The technology of the oblivion awaits you..."
version: 0.6
version: 1
minGameVersion: 135
java: true
14 changes: 13 additions & 1 deletion src/oblivion/content/OblivionUnits.java
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ public void load() {
DrawEx.circleEngine(unit, 2.5f, -5.5f, 2f);
DrawEx.circleEngine(unit, -2.5f, -5.5f, 2f);
};
hitSize = 7f;
range = 18f * 8f;
maxRange = range;
weapons.add(
Expand All @@ -820,6 +821,7 @@ public void load() {
engineDrawer = unit -> {
DrawEx.circleEngine(unit, 0f, -5.5f, 4f);
};
hitSize = 13f;
range = 23 * 8f;
maxRange = range;
weapons.add(
Expand Down Expand Up @@ -854,6 +856,7 @@ public void load() {
DrawEx.circleEngine(unit, 6f, -11f, 4f);
DrawEx.circleEngine(unit, -8f, -11f, 4f);
};
hitSize = 20f;
range = 26f * 8f;
maxRange = range;
weapons.add(
Expand Down Expand Up @@ -905,6 +908,7 @@ public void load() {
DrawEx.circleEngine(unit, i * 10f, -15f, 4f);
}
};
hitSize = 25f;
range = 33 * 8f;
maxRange = range;
weapons.add(
Expand Down Expand Up @@ -972,11 +976,19 @@ public void load() {
flying = lowAltitude = true;
constructor = UnitEntity::create;
outlineColor = Color.valueOf("3F424D");
engineDrawer = unit -> {
for (int i = -1; i <= 2; i += 2) {
DrawEx.circleEngine(unit, i * 12f, 14f, 4f);
DrawEx.circleEngine(unit, i * 9f, -11f, 4f);
}
DrawEx.circleEngine(unit, 0f, -13f, 8f);
};
hitSize = 28f;
range = 33 * 8f;
maxRange = range;
weapons.add(
new Weapon("oblivion-pow-weapon") {{
x = 0f;
x = 25f;
y = 0f;
reload = 10f;
shake = 5f;
Expand Down

0 comments on commit f16a40a

Please sign in to comment.