-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tanks v1.1.0 - Added mustard, orangered, and gold tanks, shaders, tim…
…ed levels, and several new obstacles
- Loading branch information
Showing
406 changed files
with
5,698 additions
and
1,710 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains 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
Empty file.
Empty file.
Empty file.
Empty file.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package basewindow.transformation; | ||
|
||
import basewindow.BaseWindow; | ||
|
||
public class Scale extends Transformation | ||
{ | ||
public double x; | ||
public double y; | ||
public double z; | ||
|
||
public Scale(BaseWindow window, double x, double y, double z) | ||
{ | ||
super(window); | ||
this.x = x; | ||
this.y = y; | ||
this.z = z; | ||
} | ||
|
||
public void apply() | ||
{ | ||
transform(window, x, y, z); | ||
} | ||
|
||
@Override | ||
public void applyToWindow() | ||
{ | ||
|
||
} | ||
|
||
public static void transform(BaseWindow window, double x, double y, double z) | ||
{ | ||
transform(window, x, 0, 0, 0, 0, y, 0, 0, 0, 0, z, 0, 0, 0, 0, 1); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/main/java/basewindow/transformation/ScaleAboutPoint.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package basewindow.transformation; | ||
|
||
import basewindow.BaseWindow; | ||
|
||
public class ScaleAboutPoint extends Transformation | ||
{ | ||
public double x; | ||
public double y; | ||
public double z; | ||
|
||
public double posX; | ||
public double posY; | ||
public double posZ; | ||
|
||
public ScaleAboutPoint(BaseWindow window, double x, double y, double z, double posX, double posY, double posZ) | ||
{ | ||
super(window); | ||
|
||
this.x = x; | ||
this.y = y; | ||
this.z = z; | ||
|
||
this.posX = posX; | ||
this.posY = posY; | ||
this.posZ = posZ; | ||
} | ||
|
||
public void apply() | ||
{ | ||
transform(window, x, y, z, posX, posY, posZ); | ||
} | ||
|
||
@Override | ||
public void applyToWindow() | ||
{ | ||
|
||
} | ||
|
||
public static void transform(BaseWindow window, double yaw, double pitch, double roll, double x, double y, double z) | ||
{ | ||
transform(window, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x * window.absoluteWidth, y * window.absoluteHeight, z * window.absoluteDepth, 1); | ||
|
||
transform(window, x, 0, 0, 0, 0, y, 0, 0, 0, 0, z, 0, 0, 0, 0, 1); | ||
|
||
transform(window, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -x * window.absoluteWidth, -y * window.absoluteHeight, -z * window.absoluteDepth, 1); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package basewindow.transformation; | ||
|
||
import basewindow.BaseWindow; | ||
|
||
public class Shear extends Transformation | ||
{ | ||
public double xy; | ||
public double xz; | ||
public double yx; | ||
public double yz; | ||
public double zx; | ||
public double zy; | ||
|
||
public Shear(BaseWindow window, double xy, double xz, double yx, double yz, double zx, double zy) | ||
{ | ||
super(window); | ||
this.xy = xy; | ||
this.xz = xz; | ||
this.yx = yx; | ||
this.yz = yz; | ||
this.zx = zx; | ||
this.zy = zy; | ||
} | ||
|
||
public void apply() | ||
{ | ||
transform(window, xy, xz, yx, yz, zx, zy); | ||
} | ||
|
||
@Override | ||
public void applyToWindow() | ||
{ | ||
|
||
} | ||
|
||
public static void transform(BaseWindow window, double xy, double xz, double yx, double yz, double zx, double zy) | ||
{ | ||
transform(window, 1, xy, xz, 0, yx, 1, yz, 0, zx, zy, 1, 0, 0, 0, 0, 1); | ||
} | ||
} |
This file contains 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
This file contains 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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.