Skip to content

Commit

Permalink
Release 0.1 pre-alpha time!
Browse files Browse the repository at this point in the history
  • Loading branch information
row454 committed Jan 22, 2020
1 parent 47d7846 commit 69a3c5e
Show file tree
Hide file tree
Showing 157 changed files with 33 additions and 84 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
1 change: 1 addition & 0 deletions game/bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/com/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
24 changes: 12 additions & 12 deletions game/noahgame/assets/worlds/world1.rm → game/bin/worlds/world1.rm
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
21 10
11 5
3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5
21 10
11 5
3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5
7 changes: 0 additions & 7 deletions game/noahgame/.classpath

This file was deleted.

17 changes: 0 additions & 17 deletions game/noahgame/.project

This file was deleted.

13 changes: 0 additions & 13 deletions game/noahgame/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed game/noahgame/bin/com/pixelandbitgames/gfx/Assets.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 0 additions & 5 deletions game/noahgame/src/com/kiemax/util/MusicManager.java

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.ListIterator;

import com.kiemax.entities.creature.Player;
import com.kiemax.game.Handler;
import com.kiemax.tiles.Tile;
import com.kiemax.util.collisions.QuadTree;


public class EntityManager {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kiemax.entities.creature;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kiemax.entities.projectiles;

import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.image.BufferStrategy;
import java.awt.image.BufferedImage;

import com.kiemax.display.Display;
import com.kiemax.gfx.Camera;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import java.awt.image.BufferedImage;

import com.kiemax.entities.EntityManager;
import com.kiemax.gfx.Camera;
import com.kiemax.gfx.PreLoaderImage;
import com.kiemax.input.KeyManager;
import com.kiemax.input.MouseManager;
import com.kiemax.rooms.Room;
import com.kiemax.util.audio.MusicManager;
import com.kiemax.util.collisions.QuadTree;

public class Handler {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import java.awt.Font;
import java.awt.FontFormatException;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;

public class FontLoader {
public static Font loadFont(String path, float size) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public void render(Graphics g) {
System.out.println(selectedItem);
g.setColor(Color.white);
g.drawRect(handler.getWidth()/2 - 8 * texture.getWidth()/2 + ((selectedItem % 4)+1)*(48+spacingX)-48, handler.getHeight()/2 - 8 * texture.getHeight()/2 + ((int)Math.floor(selectedItem/4)+1)*(48+spacingY)-48, 54, 54);

g.drawImage(inventoryItems.get(x+ 4*y - offset).getTexture(), handler.getWidth()/2 - 8 * texture.getWidth()/2 + x*(48+spacingX)+15, handler.getHeight()/2 - 8 * texture.getHeight()/2 + y*(48+spacingY)+15, 48, 48, null);
if (inventoryItems.size() > x+ 4*y - offset)
g.drawImage(inventoryItems.get(x+ 4*y - offset).getTexture(), handler.getWidth()/2 - 8 * texture.getWidth()/2 + x*(48+spacingX)+15, handler.getHeight()/2 - 8 * texture.getHeight()/2 + y*(48+spacingY)+15, 48, 48, null);
}
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.kiemax.entities.EntityManager;
import com.kiemax.entities.creature.Player;
import com.kiemax.entities.creature.Zombie;
import com.kiemax.entities.projectiles.Snowball;
import com.kiemax.entities.statics.Bush;
import com.kiemax.game.Handler;
import com.kiemax.items.ItemManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ public class GameState extends State {
private Room room;
public GameState(Handler handler) {
super(handler);

if (roomId == 1) {
room = new Room(handler, "noahgame/assets/worlds/world1.rm");
room = new Room(handler, "worlds/world1.rm");
} else if (roomId == 2) {
room = new Room(handler, "noahgame/assets/worlds/world2.rm");
room = new Room(handler, "worlds/world2.rm");
}

handler.setRoom(room);


}
@Override
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions game/src/com/kiemax/ui/UITextButton.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.kiemax.ui;

public class UITextButton {

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ public static String loadFileAsString(String path) {
StringBuilder builder = new StringBuilder();

try {
BufferedReader br = new BufferedReader(new FileReader(path));
BufferedReader br = new BufferedReader(new FileReader(Utils.class.getClassLoader().getResource(path).getPath()));
String line;
while((line = br.readLine()) != null)
builder.append(line + "\n");

br.close();
} catch(IOException e) {
e.printStackTrace();
}
}
return builder.toString();
}
public static int parseInt(String number) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
package com.kiemax.util.audio;

import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;

import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;

public class MusicManager implements Runnable {
private ArrayList<AudioFile> songList;
private int currentSongIndex;
private boolean running;
public MusicManager(String... songs) {
songList = new ArrayList<AudioFile>();
for(String song : songs) {
songList.add(new AudioFile("./noahgame/assets/sounds/music/" + song + ".wav"));
songList.add(new AudioFile(this.getClass().getClassLoader().getResource("sounds/music/" + song + ".wav").getPath()));


}
System.out.println(songList.size());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public class SoundEffectManager implements Runnable {
public SoundEffectManager(String... sounds) {
soundList = new ArrayList<AudioFile>();
for(String sound : sounds) {
soundList.add(new AudioFile("./noahgame/assets/sounds/sfx/" + sound + ".wav"));

soundList.add(new AudioFile(this.getClass().getClassLoader().getResource("sounds/sfx/" + sound + ".wav").getPath()));

}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
import java.util.ArrayList;
import java.util.List;

import com.kiemax.game.Handler;
import com.kiemax.rooms.Room;

/**
* A lot of this code was stolen from this article: <br>
* http://gamedevelopment.tutsplus.com/tutorials/quick-tip-use-quadtrees-to-detect-likely-collisions-in-2d-space--gamedev-374
Expand Down

0 comments on commit 69a3c5e

Please sign in to comment.