Skip to content
Snippets Groups Projects
Commit ef028d59 authored by Chaowen Zeng's avatar Chaowen Zeng
Browse files

Update res/font/DejaVuSans-Bold.ttf, res/images/background.png,...

Update res/font/DejaVuSans-Bold.ttf, res/images/background.png, res/images/player.png, res/images/sandwich.png, res/images/zombie.png, res/IO/environment.csv, res/.DS_Store, src/ShadowTreasure.java, src/.DS_Store, pom.xml files
parent 6c4675d6
No related branches found
No related tags found
No related merge requests found
pom.xml 0 → 100644
<?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>au.edu.unimelb.cis</groupId>
<artifactId>bagel</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<sourceDirectory>src/</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>14</source>
<target>14</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<maven.compiler.source>14</maven.compiler.source>
<maven.compiler.target>14</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>io.github.eleanor-em</groupId>
<artifactId>bagel</artifactId>
<version>1.9.3</version>
</dependency>
</dependencies>
</project>
File added
Player,650,100,2
Zombie,300,200
Sandwich,500,400
\ No newline at end of file
File added
res/images/background.png

14.4 KiB

res/images/player.png

2.61 KiB

res/images/sandwich.png

8.37 KiB

res/images/zombie.png

8.48 KiB

File added
import bagel.*;
import java.io.IOException;
/**
* an example Bagel game.
*/
public class ShadowTreasure extends AbstractGame {
/**
* background image
*/
private final Image BACKGROUND = new Image("res/images/background.png");
/**
* Performs a state update.
*/
@Override
public void update(Input input)
{
// Draw background
BACKGROUND.drawFromTopLeft(0, 0);
}
/**
* The entry point for the program.
*/
public static void main(String[] args) throws IOException {
ShadowTreasure game = new ShadowTreasure();
game.run();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment