Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pama1234 committed Apr 3, 2023
1 parent e2eea3f commit 3d18525
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void createConnection() {
*
* @param network_a parent network 1
* @param network_b parent network 2
* @param equal indicate that networks are equally fit
* @param equal indicate that networks are equally fit
* @return new network created from mixing parent networks
*/
public static Network crossover(final Network network_a,final Network network_b,final boolean equal) {
Expand Down
4 changes: 3 additions & 1 deletion framework0002/framework0002-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ android {
}

dependencies {
// implementation project(':game0001:game0001-core')
implementation project(':framework')
// compileOnly project(":gdx-vr-core")
// implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
// implementation "com.google.vr:sdk-base:1.190.0"

implementation 'net.java.dev.jna:jna:5.13.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public void display() {
text("real time score",0,pu);
text("a - "+Tools.getFloatString(system.myGroup.player.engine.getScore(1)),0,pu*2);
text("b - "+Tools.getFloatString(system.otherGroup.player.engine.getScore(1)),0,pu*3);
text("final score",0,pu*4);
text("a - "+Tools.getFloatString(system.myGroup.player.engine.getScore(0)),0,pu*5);
text("b - "+Tools.getFloatString(system.otherGroup.player.engine.getScore(0)),0,pu*6);
}
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
* +--> vision -> logic -> behavior -+
* | |
* +------------- world <------------+
* }</pre>
* }
* </pre>
*/
public class NetworkGroup{
public FloatBlock input,output;
Expand Down Expand Up @@ -63,6 +64,6 @@ public void setScore(int scoreType,float score) {
world.network.floatData[scoreType]=score;
}
public float getScore(int index) {//TODO
return logic.network.floatData[index];
return logic.network.floatData[index];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void displayMessage() {
}
@Override
public void checkStateTransition() {
if(system.myGroup.player.isNull()) system.currentState(new GameResultState(duel,system,system.myGroup.id,TextUtil.used.lose));
else if(system.otherGroup.player.isNull()) system.currentState(new GameResultState(duel,system,system.otherGroup.id,TextUtil.used.win));
if(system.myGroup.player.isNull()) system.currentState(new GameResultState(duel,system,system.otherGroup.id,TextUtil.used.lose));
else if(system.otherGroup.player.isNull()) system.currentState(new GameResultState(duel,system,system.myGroup.id,TextUtil.used.win));
}
public void checkCollision() {
final ActorGroup myGroup=duel.system.myGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public MainApp() {
screenList=Arrays.asList(null,
Duel.class,//几何决斗
Screen0021.class//着色器测试
);
);
}
@Override
public void create() {
Expand Down

0 comments on commit 3d18525

Please sign in to comment.