mirror of
https://github.com/Klagarge/PokeHES.git
synced 2025-07-07 00:41:10 +00:00
polish
This commit is contained in:
@ -70,7 +70,7 @@ public class Player extends Character{
|
||||
turn(goalDirection);
|
||||
System.out.println("It's a enemy !!");
|
||||
} else {
|
||||
setSpeed(sm.getSpeed(nextCell)*3); //TODO remove x3
|
||||
setSpeed(sm.getSpeed(nextCell)); //TODO remove x3
|
||||
go(goalDirection);
|
||||
}
|
||||
} else {
|
||||
|
@ -1,20 +1,14 @@
|
||||
package Screen;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.Input;
|
||||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import com.badlogic.gdx.graphics.g2d.BitmapFont;
|
||||
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;
|
||||
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter;
|
||||
|
||||
import Control.Controller;
|
||||
import Entity.Player;
|
||||
import Game.Battle;
|
||||
import Main.PokeMudry;
|
||||
import Main.Settings;
|
||||
|
||||
import ch.hevs.gdx2d.components.bitmaps.BitmapImage;
|
||||
import ch.hevs.gdx2d.components.screen_management.RenderingScreen;
|
||||
import ch.hevs.gdx2d.lib.GdxGraphics;
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
package Text;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import Entity.Enemy;
|
||||
import Entity.Character.Direction;
|
||||
|
||||
import java.text.Normalizer;
|
||||
import java.util.Vector;
|
||||
import java.util.Arrays;
|
||||
import java.util.Random;
|
||||
|
||||
@ -59,13 +57,13 @@ public class TextEnemy {
|
||||
|
||||
// Creating object for Random class
|
||||
Random rd = new Random();
|
||||
|
||||
|
||||
// Starting from the last element and swapping one by one.
|
||||
for (int i = a.length-1; i > 0; i--) {
|
||||
|
||||
|
||||
// Pick a random index from 0 to i
|
||||
int j = rd.nextInt(i+1);
|
||||
|
||||
|
||||
// Swap array[i] with the element at random index
|
||||
int temp = a[i];
|
||||
a[i] = a[j];
|
||||
|
@ -1,16 +1,3 @@
|
||||
|
||||
import Text.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Random;
|
||||
import java.util.RandomAccess;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class testYann{
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
Reference in New Issue
Block a user