Etyl is the latest version of Etyllica (a 2D Game Engine made in Java). It can be used as a Game Engine or simply way to display something on the screen.
This project was originally built at the top of AWT but was modified to handle multiples backends (choose between AWT or LibGDX). You can run the exact same code on Desktop or Android (and possibly HTML5 and iOS in the future, thanks to LibGDX).
- Clone or download the minimal template example
- Import to your favorite IDE
- Have fun
<dependency>
<groupId>com.harium.etyl</groupId>
<artifactId>etyl</artifactId>
<version>1.5.0</version>
</dependency>
Can't use maven? No problem, build a local jar.
import com.harium.etyl.Etyl;
import com.harium.etyl.commons.context.Application;
import com.harium.etyl.commons.graphics.Color;
import com.harium.etyl.commons.graphics.Graphics;
public class Main extends Etyl {
public Main() {
super(800, 600);
}
public static void main(String[] args) {
Main app = new Main();
app.setTitle("Etyl");
app.init();
}
@Override
public Application startApplication() {
return new HelloWorld(w, h);
}
public class HelloWorld extends Application {
public HelloWorld(int w, int h) {
super(w, h);
}
@Override
public void load() {}
@Override
public void draw(Graphics g) {
g.setColor(Color.GREEN_ETYL);
g.fillRect(0, 0, w, h);
}
}
}
- Etyl GDX - A GDX backend to etyl
- Etyl Animation - Animation Module
- Etyl UI - UI Module
- Etyl Sound - Sound Module
- Etyl i18n - Internacionalization Module
- Etyl Spriter - Spriter Module
- Etyl Ruby - JRuby Module
Do you have a request? Need some help?
Open an issue, lets talk.
Need some privacy?
Send me an e-mail: yuri@harium.com
Basically you can use it freely (even in commercial projects) but if you make some changes in Etyl, I would like to see it as a Pull Request (and maybe add it to the project).