Android Open Source - libgdx-Pong Main Activity






From Project

Back to project page libgdx-Pong.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project libgdx-Pong listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.zx.pong;
// ww  w . j  a  v a  2 s.  c o  m
import android.os.Bundle;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;

public class MainActivity extends AndroidApplication {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
        
        cfg.useAccelerometer = true;
        
        initialize(new Pong(), cfg);
    }
}




Java Source Code List

com.zx.pong.MainActivity.java
com.zx.pong.Main.java
com.zx.pong.Pong.java