Added dialog boxes. Created structures for Megamon Data.

master
sigonasr2 7 years ago
parent b7a05dcfff
commit 9c21970b79
  1. 15
      Megamon-core/.classpath
  2. 13
      Megamon-core/assets/tilesets/Test Map 2.tmx
  3. 19
      Megamon-core/assets/tilesets/Test Map 3.tmx
  4. 49
      Megamon-core/assets/tilesets/Test Map.tmx
  5. 4
      Megamon-core/assets/tilesets/Tileset2.tsx
  6. 4
      Megamon-core/assets/tilesets/Tileset2.tsx.q13708
  7. BIN
      Megamon-core/assets/tilesets/wiremantiles.png
  8. 6
      Megamon-core/src/sig/megamon/Database.java
  9. 67
      Megamon-core/src/sig/megamon/DialogBox.java
  10. 41
      Megamon-core/src/sig/megamon/Megamon.java
  11. 46
      Megamon-core/src/sig/megamon/MegamonCreature.java
  12. 4
      Megamon-core/src/sig/megamon/Room.java
  13. 4
      Megamon-core/src/sig/megamon/RoomData.java
  14. 7
      Megamon-core/src/sig/megamon/creature/Category.java
  15. 17
      Megamon-core/src/sig/megamon/creature/CreatureMove.java
  16. 119
      Megamon-core/src/sig/megamon/creature/CreatureType.java
  17. 35
      Megamon-core/src/sig/megamon/creature/SpriteCollection.java
  18. 9
      Megamon-core/src/sig/megamon/ref/SignRef.java
  19. 2
      Megamon-desktop/.project

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry path="bin" kind="output"/>
<classpathentry path="src" kind="src"/>
<classpathentry path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/" kind="con"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.6/47d1e9b890e364ec28f128e9bb3b9a12a94c164/gdx-1.9.6.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.6/7d903ecd6b0df2ec334814b8e70618e4c93fd37c/gdx-1.9.6-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.6/c249ef4060a4fada952f278455c8f7b9cba3c18a/gdx-box2d-1.9.6.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.6/584f96799f8fedc8e6bb87eef1e261f0e7f92900/gdx-box2d-1.9.6-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.6/ea1fd4884be631d9b7cd0f496b1ab39e31eb434b/gdx-controllers-1.9.6.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.6/a730ab024c77f376b24e635f1d82e7d69fc5c648/gdx-controllers-1.9.6-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-freetype/1.9.6/69187cc3c8062f191df435b43671b0e5ffcbf353/gdx-freetype-1.9.6.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-freetype/1.9.6/4b5600df790e2798b21d6e5decdf752698c05013/gdx-freetype-1.9.6-sources.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="assets"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.6/47d1e9b890e364ec28f128e9bb3b9a12a94c164/gdx-1.9.6.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.6/7d903ecd6b0df2ec334814b8e70618e4c93fd37c/gdx-1.9.6-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.6/c249ef4060a4fada952f278455c8f7b9cba3c18a/gdx-box2d-1.9.6.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.6/584f96799f8fedc8e6bb87eef1e261f0e7f92900/gdx-box2d-1.9.6-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.6/ea1fd4884be631d9b7cd0f496b1ab39e31eb434b/gdx-controllers-1.9.6.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.6/a730ab024c77f376b24e635f1d82e7d69fc5c648/gdx-controllers-1.9.6-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-freetype/1.9.6/69187cc3c8062f191df435b43671b0e5ffcbf353/gdx-freetype-1.9.6.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-freetype/1.9.6/4b5600df790e2798b21d6e5decdf752698c05013/gdx-freetype-1.9.6-sources.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

@ -2,6 +2,7 @@
<map version="1.0" tiledversion="1.0.2" orientation="orthogonal" renderorder="right-down" width="100" height="100" tilewidth="16" tileheight="16" backgroundcolor="#aa007f" nextobjectid="1">
<tileset firstgid="1" source="Tileset1.tsx"/>
<tileset firstgid="89" source="HiddenLayer.tsx"/>
<tileset firstgid="93" source="Tileset2.tsx"/>
<layer name="Tile Layer 1" width="100" height="100">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,63,63,63,63,63,63,67,63,63,63,63,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

@ -4,6 +4,7 @@
<image source="topmanstage.png" width="137" height="188"/>
</tileset>
<tileset firstgid="89" source="HiddenLayer.tsx"/>
<tileset firstgid="93" source="Tileset2.tsx"/>
<layer name="Tile Layer 1" width="100" height="100">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" tiledversion="1.0.2" orientation="orthogonal" renderorder="right-down" width="100" height="100" tilewidth="16" tileheight="16" nextobjectid="13">
<tileset firstgid="1" source="Tileset1.tsx"/>
<tileset firstgid="1" name="Level1" tilewidth="16" tileheight="16" spacing="1" margin="1" tilecount="88" columns="8">
<image source="topmanstage.png" width="137" height="188"/>
</tileset>
<tileset firstgid="89" source="HiddenLayer.tsx"/>
<tileset firstgid="93" source="Tileset2.tsx"/>
<layer name="Tile Layer 1" width="100" height="100">
<data encoding="csv">
15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
@ -55,29 +58,21 @@
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,51,51,50,51,51,51,50,51,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,51,50,51,51,51,50,51,51,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,141,141,141,141,141,141,142,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,141,141,141,141,141,141,141,141,142,0,0,0,0,0,0,0,0,0,0,0,93,94,95,93,94,95,93,94,95,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,141,141,141,141,141,141,141,141,142,0,0,0,0,0,0,0,0,0,0,0,104,105,106,104,105,106,104,105,106,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,141,141,141,141,141,141,142,0,0,0,0,0,0,0,0,0,0,0,115,116,117,115,116,117,115,116,117,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,141,141,141,141,141,141,142,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
15,18,18,18,18,18,18,18,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
@ -106,7 +109,7 @@
15,15,15,15,15,15,15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<layer name="Tile Layer 2" width="100" height="100">
<layer name="Tile Layer 2" width="100" height="100" visible="0">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset name="wiremantiles" tilewidth="16" tileheight="16" spacing="1" margin="1" tilecount="66" columns="11">
<image source="wiremantiles.png" width="188" height="103"/>
</tileset>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset name="wiremantiles" tilewidth="16" tileheight="16" spacing="1" margin="1" tilecount="66" columns="11">
<image source="D:/Downloads/MegaMon/MegaMon/GRAPHICS/tilesets/wiremantiles.png" width="188" height="103"/>
</tileset>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -20,7 +20,11 @@ public class Database {
public static void SetupInfoDatabase() {
new SignRef(
new Point2D.Double(9,99),
"Test Map"
"Test Map",
new String[]{
"Hello there! You have found the invisible space that happens to be a dialog box.",
"\n\nCongratulations~!"
}
);
}
}

@ -1,5 +1,10 @@
package sig.megamon;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
@ -14,35 +19,81 @@ public class DialogBox {
static Texture dialog_background = new Texture("dialog.png");
static Texture dialog_box = new Texture("dialog_box.png");
static BitmapFont messageboxfont = new BitmapFont(Gdx.files.internal("fonts/messageboxfont.fnt"));
List<String> remainingMessages;
String messageBody = "";
String displayedMessage = "";
int cursor=0;
int message_split_marker=0;
GlyphLayout layout;
public DialogBox(String messageBody) {
this.messageBody=messageBody;
public DialogBox(String...messages) {
remainingMessages=new LinkedList<String>(Arrays.asList(messages));
this.messageBody = remainingMessages.remove(0);
}
public void run() {
//TODO accept keyboard inputs for the dialog box.
/*if (layout!=null) {
if (layout.height<64 && cursor<messageBody.length()) {
cursor++;
if (Gdx.input.isKeyJustPressed(Megamon.ACTIONKEY)) {
System.out.println("Cursor is at position "+cursor+"/"+displayedMessage.length());
if (cursor==displayedMessage.length()) {
if (cursor!=messageBody.length()) {
displayedMessage="";
messageBody=messageBody.substring(cursor, messageBody.length());
cursor=0;
} else {
if (remainingMessages.size()>0) {
messageBody = remainingMessages.remove(0);
displayedMessage="";
cursor=0;
} else {
DestroyMessageBox();
}
}
}
}*/
}
}
private void DestroyMessageBox() {
Megamon.messagebox=null;
}
public void draw(SpriteBatch batch) {
DrawUtils.drawTextureWithColor(batch, dialog_background, (Megamon.WINDOW_WIDTH-dialog_background.getWidth())/2,0,new Color(0.5f,1f,0.5f,1f));
DrawUtils.drawTextureWithColor(batch, dialog_box, (Megamon.WINDOW_WIDTH-dialog_box.getWidth())/2,0,new Color(0.5f,1f,0.5f,1f));
//System.out.println(dialog_box.getTextureData().getWidth());
layout = messageboxfont.draw(batch, "Can we display\nNewline characters?", (Megamon.WINDOW_WIDTH-dialog_box.getWidth())/2+96, dialog_box.getHeight()-24, 0, 30, 420, Align.left, true);
layout = messageboxfont.draw(batch, displayedMessage, (Megamon.WINDOW_WIDTH-dialog_box.getWidth())/2+96, dialog_box.getHeight()-24, 0, displayedMessage.length(), 420, Align.left, true);
if (cursor!=displayedMessage.length()) {
cursor++;
} else
if (layout.height<64) {
//Check if the next set of text with a space is not going to maximize the window.
cursor++;
int checkcursor = findNextSpace(messageBody,cursor)+cursor;
//layout.setTe
String nextStr="";
if (checkcursor==messageBody.length()) {
nextStr = messageBody;
} else {
nextStr = messageBody.substring(0, checkcursor+1);
}
layout.setText(messageboxfont, nextStr, Color.BLACK, 420, Align.left, true);
if (layout.height<64 && cursor!=messageBody.length()) {
displayedMessage = nextStr;
cursor++;
}
}
//Megamon.font.draw(batch, messageBody, (Megamon.WINDOW_WIDTH-dialog_box.getWidth())/2-dialog_box.getWidth()/2, dialog_box.getHeight()+, start, end, targetWidth, halign, wrap);
}
private int findNextSpace(String messageBody, int cursor) {
String subString=messageBody.substring(cursor, messageBody.length());
//System.out.println("Substring is "+subString);
for (int i=0;i<subString.length();i++) {
System.out.println("Character at "+i+" is "+subString.charAt(i));
if (subString.charAt(i)==' ') {
System.out.println("Found a space at position "+i);
return i;
}
}
return subString.length();
}
}

@ -17,6 +17,7 @@ import com.badlogic.gdx.Input;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver;
import com.badlogic.gdx.Files.FileType;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
@ -40,7 +41,7 @@ public class Megamon extends ApplicationAdapter implements ApplicationListener{
SpriteBatch batch;
Texture img;
public static BitmapFont font;
DialogBox messagebox;
public static DialogBox messagebox;
//AssetManager assets;
//TiledMap map;
OrthographicCamera camera;
@ -49,17 +50,24 @@ public class Megamon extends ApplicationAdapter implements ApplicationListener{
final public static int WINDOW_HEIGHT=480;
final public static double CHAR_SPD=0.1;
Point2D.Double direction = new Point2D.Double(0,0);
Point2D.Double lastdirection = new Point2D.Double(0,1);
final public static Point2D.Double position=new Point2D.Double(1,1);
Calendar lastCheck = Calendar.getInstance();
int framesPassed=0;
final public static String HIDDENLAYERNAME = "Tile Layer 2";
final public static int ACTIONKEY = Keys.Z;
final public static int CANCELKEY = Keys.X;
final public static int MOVELEFTKEY = Keys.LEFT;
final public static int MOVERIGHTKEY = Keys.RIGHT;
final public static int MOVEUPKEY = Keys.UP;
final public static int MOVEDOWNKEY = Keys.DOWN;
//public static List<Object> objects = new ArrayList<Object>();
public static Room currentLevel;
public static HashMap<String,RoomRef> doorDatabase = new HashMap<String,RoomRef>();
public static HashMap<String,SignRef> infoDatabase = new HashMap<String,SignRef>();
@Override
public void create () {
public void create() {
batch = new SpriteBatch();
img = new Texture("megamon_icon64.png");
font = new BitmapFont(Gdx.files.internal("fonts/AgencyFB.fnt"));
@ -79,7 +87,7 @@ public class Megamon extends ApplicationAdapter implements ApplicationListener{
Database.SetupDoorDatabase();
Database.SetupInfoDatabase();
currentLevel = new Room(position,"Test Map");
messagebox = new DialogBox("This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.");
//messagebox = new DialogBox("This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.This is a test message.");
}
@Override
@ -100,21 +108,25 @@ public class Megamon extends ApplicationAdapter implements ApplicationListener{
}
if (PlayerUtils.isSnappedToGrid(position)) {
direction=new Point2D.Double(0, 0);
if (Gdx.input.isKeyPressed(Input.Keys.A)) {
direction=new Point2D.Double(-CHAR_SPD,0);
if (Gdx.input.isKeyPressed(MOVELEFTKEY)) {
direction=lastdirection=new Point2D.Double(-CHAR_SPD,0);
} else
if (Gdx.input.isKeyPressed(Input.Keys.W)) {
direction=new Point2D.Double(0,CHAR_SPD);
if (Gdx.input.isKeyPressed(MOVEUPKEY)) {
direction=lastdirection=new Point2D.Double(0,CHAR_SPD);
} else
if (Gdx.input.isKeyPressed(Input.Keys.D)) {
direction=new Point2D.Double(CHAR_SPD,0);
if (Gdx.input.isKeyPressed(MOVERIGHTKEY)) {
direction=lastdirection=new Point2D.Double(CHAR_SPD,0);
} else
if (Gdx.input.isKeyPressed(Input.Keys.S)) {
direction=new Point2D.Double(0,-CHAR_SPD);
if (Gdx.input.isKeyPressed(MOVEDOWNKEY)) {
direction=lastdirection=new Point2D.Double(0,-CHAR_SPD);
}
Point2D.Double destinationposition = new Point2D.Double(position.x+Math.signum(lastdirection.x),position.y+Math.signum(lastdirection.y));
if (Gdx.input.isKeyJustPressed(ACTIONKEY)) {
CheckForInfo(destinationposition);
}
if (direction.x!=0 || direction.y!=0) {
//System.out.println("("+position.x+","+Math.signum(direction.x)+","+position.y+","+Math.signum(direction.y)+")");
Point2D.Double destinationposition = new Point2D.Double(position.x+Math.signum(direction.x),position.y+Math.signum(direction.y));
//Point2D.Double destinationposition = new Point2D.Double(position.x+Math.signum(direction.x),position.y+Math.signum(direction.y));
if (PlayerUtils.isLocationPassable(currentLevel.getMap(),destinationposition)) {
position.setLocation(position.x+direction.x, position.y+direction.y);
} else {
@ -122,7 +134,6 @@ public class Megamon extends ApplicationAdapter implements ApplicationListener{
}
System.out.println(infoDatabase.keySet());
CheckForDoor(destinationposition);
CheckForInfo(destinationposition);
}
} else {
position.setLocation(position.x+direction.x, position.y+direction.y);
@ -132,7 +143,7 @@ public class Megamon extends ApplicationAdapter implements ApplicationListener{
camera.position.set((float)position.x+0.5f, (float)position.y+0.5f, camera.position.z);
//System.out.println("Camera position: "+camera.position);
camera.update();
System.out.println(Megamon.WINDOW_WIDTH+","+Megamon.WINDOW_HEIGHT+";"+camera.viewportWidth+","+camera.viewportHeight);
//System.out.println(Megamon.WINDOW_WIDTH+","+Megamon.WINDOW_HEIGHT+";"+camera.viewportWidth+","+camera.viewportHeight);
currentLevel.renderer.setView(camera);
currentLevel.renderer.render();
batch.begin();
@ -176,7 +187,7 @@ public class Megamon extends ApplicationAdapter implements ApplicationListener{
//System.out.println("This is a door!");
SignRef info = infoDatabase.get(PlayerUtils.getDoorPositionHash(destinationposition));
//TODO Do interface stuff here.
messagebox = new DialogBox(info.getMessages());
}
}

@ -0,0 +1,46 @@
package sig.megamon;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import sig.megamon.creature.CreatureMove;
import sig.megamon.creature.CreatureType;
import sig.megamon.creature.SpriteCollection;
public class MegamonCreature {
SpriteCollection sprites;
String name;
String bio;
CreatureType type1;
CreatureType type2;
int hp;
int atk;
int def;
int spd;
int spc;
List<CreatureMove> moveset;
public MegamonCreature(String mini_icon, String sprite, String back_sprite,
String name, String bio, CreatureType type1, int base_hp, int base_atk, int base_def, int base_spd, int base_spc,
CreatureMove...moveset) {
this(mini_icon,sprite,back_sprite,name,bio,type1,CreatureType.NONE,base_hp,base_atk,base_def,base_spd,base_spc,moveset);
}
public MegamonCreature(String mini_icon, String sprite, String back_sprite,
String name, String bio, CreatureType type1, CreatureType type2, int base_hp, int base_atk, int base_def, int base_spd, int base_spc,
CreatureMove...moveset) {
this.sprites = new SpriteCollection(mini_icon,sprite,back_sprite);
this.name = name;
this.bio = bio;
this.type1 = type1;
this.type2 = type2;
this.hp = base_hp;
this.atk = base_atk;
this.def = base_def;
this.spd = base_spd;
this.spc = base_spc;
this.moveset = new LinkedList(Arrays.asList(moveset));
}
}

@ -87,9 +87,7 @@ public class Room {
* Frees all resources associated with this room.
*/
public void destroy() {
for (Object o : objects) {
o.destroy();
}
objects.clear();
map.dispose();
renderer.dispose();
}

@ -8,8 +8,8 @@ import java.util.List;
public enum RoomData {
MAP_1("Test Map",
Arrays.asList(
new Object("MEGASPINNN.png",new Point2D.Double(0, 4)),
new Object("megamonlogowip.png",new Point2D.Double(3, 7))
new Object("MEGASPINNN.png",new Point2D.Double(0, 4))
//new Object("megamonlogowip.png",new Point2D.Double(3, 7))
)),
MAP_2("Test Map 2",
new ArrayList<Object>()),

@ -0,0 +1,7 @@
package sig.megamon.creature;
public enum Category {
PHYSICAL,
SPECIAL,
STATUS;
}

@ -0,0 +1,17 @@
package sig.megamon.creature;
public class CreatureMove {
int lvLearned=0;
String name="";
String desc="";
CreatureType type;
Category cat;
public CreatureMove(String name, String description, int levelLearned, CreatureType type, Category category) {
this.name=name;
this.desc=description;
this.lvLearned=levelLearned;
this.type=type;
this.cat=category;
}
}

@ -0,0 +1,119 @@
package sig.megamon.creature;
public enum CreatureType {
NORMAL,
FIRE,
WATER,
ELECTRIC,
ICE,
STRENGTH,
GROUND,
FLYING,
BUG,
DRAGON,
DARK,
SHIELD,
NONE;
public CreatureType[] getSuperEffectiveTypes() {
switch (this) {
case BUG:
return new CreatureType[]{DARK,SHIELD};
case DARK:
return new CreatureType[]{STRENGTH,FLYING};
case DRAGON:
return new CreatureType[]{DRAGON};
case ELECTRIC:
return new CreatureType[]{WATER,FLYING,DARK};
case FIRE:
return new CreatureType[]{BUG,DARK};
case FLYING:
return new CreatureType[]{STRENGTH,BUG};
case GROUND:
return new CreatureType[]{FIRE,ELECTRIC};
case ICE:
return new CreatureType[]{FLYING,DRAGON};
case NORMAL:
return new CreatureType[]{};
case SHIELD:
return new CreatureType[]{ICE,GROUND};
case STRENGTH:
return new CreatureType[]{NORMAL,ICE};
case WATER:
return new CreatureType[]{FIRE,GROUND};
case NONE:
return new CreatureType[]{};
default:
System.out.println("WARNING! Could not find proper effectiveness table for type "+this.name()+"! This should not be happening!");
return new CreatureType[]{};
}
}
public CreatureType[] getWeakTypes() {
switch (this) {
case BUG:
return new CreatureType[]{FIRE,STRENGTH,FLYING};
case DARK:
return new CreatureType[]{FIRE,ELECTRIC};
case DRAGON:
return new CreatureType[]{};
case ELECTRIC:
return new CreatureType[]{ELECTRIC,DRAGON,SHIELD};
case FIRE:
return new CreatureType[]{FIRE,WATER,DRAGON,SHIELD};
case FLYING:
return new CreatureType[]{ELECTRIC,DARK};
case GROUND:
return new CreatureType[]{BUG};
case ICE:
return new CreatureType[]{WATER,ICE};
case NORMAL:
return new CreatureType[]{};
case SHIELD:
return new CreatureType[]{STRENGTH,FLYING};
case STRENGTH:
return new CreatureType[]{FLYING,BUG};
case WATER:
return new CreatureType[]{WATER,DRAGON,SHIELD};
case NONE:
return new CreatureType[]{};
default:
System.out.println("WARNING! Could not find proper effectiveness table for type "+this.name()+"! This should not be happening!");
return new CreatureType[]{};
}
}
public CreatureType[] getUnaffectedTypes() {
switch (this) {
case BUG:
return new CreatureType[]{};
case DARK:
return new CreatureType[]{};
case DRAGON:
return new CreatureType[]{};
case ELECTRIC:
return new CreatureType[]{GROUND};
case FIRE:
return new CreatureType[]{};
case FLYING:
return new CreatureType[]{};
case GROUND:
return new CreatureType[]{FLYING};
case ICE:
return new CreatureType[]{};
case NORMAL:
return new CreatureType[]{};
case SHIELD:
return new CreatureType[]{};
case STRENGTH:
return new CreatureType[]{};
case WATER:
return new CreatureType[]{};
case NONE:
return new CreatureType[]{};
default:
System.out.println("WARNING! Could not find proper effectiveness table for type "+this.name()+"! This should not be happening!");
return new CreatureType[]{};
}
}
}

@ -0,0 +1,35 @@
package sig.megamon.creature;
import com.badlogic.gdx.graphics.Texture;
/**
* A collection of 3 images that represents each Megamon.
* One is the overworld/mini icon when looking at stats of the Megamon.
* One is the forward-facing sprite that players see when facing the Megamon.
* One if the backward-facing sprite that players see when they send out their Megamon.
*
*/
public class SpriteCollection {
final static String MEGAMON_ASSETS = "Megamon/";
Texture mini_icon;
Texture sprite;
Texture back_sprite;
/**
* Provide the file names of the sprites relative to the 'Megamon' assets folder.
*/
public SpriteCollection(String mini_icon, String sprite, String back_sprite) {
this.mini_icon = new Texture(MEGAMON_ASSETS+mini_icon);
this.sprite = new Texture(MEGAMON_ASSETS+sprite);
this.back_sprite = new Texture(MEGAMON_ASSETS+back_sprite);
}
public Texture getMiniIcon() {
return mini_icon;
}
public Texture getSprite() {
return sprite;
}
public Texture getBackSprite() {
return back_sprite;
}
}

@ -5,18 +5,19 @@ import java.awt.geom.Point2D.Double;
import sig.megamon.Megamon;
public class SignRef extends Ref{
String message;
String[] messages;
public SignRef(Double position, String room) {
public SignRef(Double position, String room, String...messages) {
super(position, room);
Megamon.infoDatabase.put(generateHash(),this);
this.messages=messages;
}
public String getRoom() {
return roomName;
}
public String getMessage() {
return message;
public String[] getMessages() {
return messages;
}
}

@ -18,7 +18,7 @@
<link>
<name>assets</name>
<type>2</type>
<location>C:/Users/Joshua Sigona/Dropbox/MegaMon/Game/Megamon/assets</location>
<location>C:/Users/Joshua Sigona/Dropbox/MegaMon/Game/git/Megamon-core/assets</location>
</link>
</linkedResources>
</projectDescription>

Loading…
Cancel
Save