K (Download-Version ausgelagert)
Zeile 4: Zeile 4:
  
 
<div class="card" style="margin: 0 10px">[https://github.com/engine-alpha/engine-alpha <i class="fa fa-fw fa-github"></i> GitHub] [https://www.facebook.com/enginealphaorg <i class="fa fa-fw fa-facebook"></i> Facebook] [https://plus.google.com/113552285547745537126?rel=author <i class="fa fa-fw fa-google-plus"></i> Google+]</div>
 
<div class="card" style="margin: 0 10px">[https://github.com/engine-alpha/engine-alpha <i class="fa fa-fw fa-github"></i> GitHub] [https://www.facebook.com/enginealphaorg <i class="fa fa-fw fa-facebook"></i> Facebook] [https://plus.google.com/113552285547745537126?rel=author <i class="fa fa-fw fa-google-plus"></i> Google+]</div>
 +
 +
<div class="card" style="margin: 0 10px; padding: 0" id="stackoverflow-german">[http://area51.stackexchange.com/proposals/54232/stack-overflow-in-german?referrer=XmTlrC0L52FGNOQAQVJC6g2 http://area51.stackexchange.com/ads/proposal/54232.png]</div>
 
</div>
 
</div>
  

Version vom 31. Oktober 2014, 23:50 Uhr

__NOTITLE__  

Engine Alpha ist eine anfängerorientierte 2D-Gaming-Engine in deutscher Sprache. Ihr Hauptzweck ist es, Begeisterung für Programmierung und Informatik durch schnelle, sichtbare und starke Erfolge zu entwickeln.

Einstiegspunkte

Hilfe und Support

Du hast Fragen? Melde dich doch in unserem öffentlichen Chat: https://gitter.im/engine-alpha/engine-alpha

Ein einfaches Beispiel

import ea.*;

public class Sample extends Game {
    public static void main(String[] args) {
        new Sample();
    }

    private Rechteck box;

    public Sample() {
        super(400, 400);

        box = new Rechteck(175, 175, 50, 50);
        box.farbeSetzen("rot");

        wurzel.add(box);
    }

    @Override
    public void tasteReagieren(int code) {
        switch(code) {
            case 26: box.verschieben(+0, -10); break;
            case 27: box.verschieben(+10, +0); break;
            case 28: box.verschieben(+0, +10); break;
            case 29: box.verschieben(-10, +0); break;
        }
    }
}