Fixed and ported to maven

This commit is contained in:
Sebastian Cabrera 2024-10-23 14:47:23 -04:00
parent b9d8694c3e
commit 49033d300f
24 changed files with 28 additions and 12 deletions

16
pixels/pom.xml Normal file
View 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>

View file

@ -1,4 +1,4 @@
package com.okseby.pixels.engine; package com.okseby.engine;
public abstract class AbstractGame { public abstract class AbstractGame {
public abstract void update(float dt); public abstract void update(float dt);

View file

@ -1,4 +1,4 @@
package com.okseby.pixels.engine; package com.okseby.engine;
public class GameContainer implements Runnable { public class GameContainer implements Runnable {
private Thread thread; private Thread thread;

View file

@ -1,4 +1,4 @@
package com.okseby.pixels.engine; package com.okseby.engine;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import java.awt.event.KeyListener; import java.awt.event.KeyListener;

View file

@ -1,8 +1,8 @@
package com.okseby.pixels.engine; package com.okseby.engine;
import java.awt.image.DataBufferInt; import java.awt.image.DataBufferInt;
import com.okseby.pixels.engine.gfx.Image; import com.okseby.engine.gfx.Image;
public class Renderer { public class Renderer {
private int pW, pH; private int pW, pH;

View file

@ -1,4 +1,4 @@
package com.okseby.pixels.engine; package com.okseby.engine;
import java.awt.BorderLayout; import java.awt.BorderLayout;
import java.awt.Canvas; import java.awt.Canvas;

View file

@ -1,4 +1,4 @@
package com.okseby.pixels.engine.gfx; package com.okseby.engine.gfx;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.io.IOException; import java.io.IOException;

View file

@ -1,11 +1,11 @@
package com.okseby.pixels.game; package com.okseby.game;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import com.okseby.pixels.engine.AbstractGame; import com.okseby.engine.AbstractGame;
import com.okseby.pixels.engine.GameContainer; import com.okseby.engine.GameContainer;
import com.okseby.pixels.engine.Renderer; import com.okseby.engine.Renderer;
import com.okseby.pixels.engine.gfx.Image; import com.okseby.engine.gfx.Image;
public class GameManager extends AbstractGame { public class GameManager extends AbstractGame {
static GameContainer gc; static GameContainer gc;

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Before After
Before After

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Before After
Before After