Fixed and ported to maven
This commit is contained in:
parent
b9d8694c3e
commit
49033d300f
24 changed files with 28 additions and 12 deletions
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.
16
pixels/pom.xml
Normal file
16
pixels/pom.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.okseby</groupId>
|
||||
<artifactId>pixels</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -1,4 +1,4 @@
|
|||
package com.okseby.pixels.engine;
|
||||
package com.okseby.engine;
|
||||
|
||||
public abstract class AbstractGame {
|
||||
public abstract void update(float dt);
|
|
@ -1,4 +1,4 @@
|
|||
package com.okseby.pixels.engine;
|
||||
package com.okseby.engine;
|
||||
|
||||
public class GameContainer implements Runnable {
|
||||
private Thread thread;
|
|
@ -1,4 +1,4 @@
|
|||
package com.okseby.pixels.engine;
|
||||
package com.okseby.engine;
|
||||
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.KeyListener;
|
|
@ -1,8 +1,8 @@
|
|||
package com.okseby.pixels.engine;
|
||||
package com.okseby.engine;
|
||||
|
||||
import java.awt.image.DataBufferInt;
|
||||
|
||||
import com.okseby.pixels.engine.gfx.Image;
|
||||
import com.okseby.engine.gfx.Image;
|
||||
|
||||
public class Renderer {
|
||||
private int pW, pH;
|
|
@ -1,4 +1,4 @@
|
|||
package com.okseby.pixels.engine;
|
||||
package com.okseby.engine;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Canvas;
|
|
@ -1,4 +1,4 @@
|
|||
package com.okseby.pixels.engine.gfx;
|
||||
package com.okseby.engine.gfx;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
|
@ -1,11 +1,11 @@
|
|||
package com.okseby.pixels.game;
|
||||
package com.okseby.game;
|
||||
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
import com.okseby.pixels.engine.AbstractGame;
|
||||
import com.okseby.pixels.engine.GameContainer;
|
||||
import com.okseby.pixels.engine.Renderer;
|
||||
import com.okseby.pixels.engine.gfx.Image;
|
||||
import com.okseby.engine.AbstractGame;
|
||||
import com.okseby.engine.GameContainer;
|
||||
import com.okseby.engine.Renderer;
|
||||
import com.okseby.engine.gfx.Image;
|
||||
|
||||
public class GameManager extends AbstractGame {
|
||||
static GameContainer gc;
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
BIN
pixels/target/classes/com/okseby/engine/AbstractGame.class
Normal file
BIN
pixels/target/classes/com/okseby/engine/AbstractGame.class
Normal file
Binary file not shown.
BIN
pixels/target/classes/com/okseby/engine/GameContainer.class
Normal file
BIN
pixels/target/classes/com/okseby/engine/GameContainer.class
Normal file
Binary file not shown.
BIN
pixels/target/classes/com/okseby/engine/Input.class
Normal file
BIN
pixels/target/classes/com/okseby/engine/Input.class
Normal file
Binary file not shown.
BIN
pixels/target/classes/com/okseby/engine/Renderer.class
Normal file
BIN
pixels/target/classes/com/okseby/engine/Renderer.class
Normal file
Binary file not shown.
BIN
pixels/target/classes/com/okseby/engine/Window.class
Normal file
BIN
pixels/target/classes/com/okseby/engine/Window.class
Normal file
Binary file not shown.
BIN
pixels/target/classes/com/okseby/engine/gfx/Image.class
Normal file
BIN
pixels/target/classes/com/okseby/engine/gfx/Image.class
Normal file
Binary file not shown.
BIN
pixels/target/classes/com/okseby/game/GameManager.class
Normal file
BIN
pixels/target/classes/com/okseby/game/GameManager.class
Normal file
Binary file not shown.
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Loading…
Add table
Add a link
Reference in a new issue