-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:godrin/TowerDefense
- Loading branch information
Showing
19 changed files
with
400 additions
and
45 deletions.
There are no files selected for viewing
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,9 @@ | ||
#ifdef GL_ES | ||
precision mediump float; | ||
#endif | ||
varying vec4 v_Color; | ||
|
||
void main() | ||
{ | ||
gl_FragColor = v_Color; | ||
} |
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,22 @@ | ||
attribute float a_distance; | ||
attribute float a_angle; | ||
attribute vec4 a_mycolor; | ||
varying vec4 v_Color; | ||
uniform mat4 world; | ||
uniform vec4 u_position; | ||
uniform float u_time; | ||
uniform float u_size; | ||
uniform float u_opacity; | ||
|
||
void main() | ||
{ | ||
v_Color=a_mycolor; | ||
v_Color.a*=u_opacity; | ||
v_Color.g=sin(u_time*10); | ||
v_Color.b=sin(u_time*10); | ||
vec4 a_position=u_position; | ||
float d=a_distance*u_time/1.0f; //(1.0f+sin(u_time+a_distance+a_angle)*0.1f)*a_distance; | ||
vec4 delta=vec4(sin(a_angle),cos(a_angle),0,0)*d*u_size; | ||
a_position+=delta; | ||
gl_Position=world*a_position; | ||
} |
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,20 @@ | ||
package com.cdm.defend; | ||
|
||
import com.cdm.Game; | ||
import com.cdm.view.Screen; | ||
|
||
public class DemoGame implements Game { | ||
|
||
@Override | ||
public void setScreen(Screen newScreen) { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
public void setScreen(String string) { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
} |
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
Oops, something went wrong.