com.cometmebro.game.CMB.java Source code

Java tutorial

Introduction

Here is the source code for com.cometmebro.game.CMB.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cometmebro.game;

/**
 *
 * @author Dan
 */
import com.badlogic.gdx.Game;

public class CMB extends Game {
    public static final String TITLE = "Game Project";
    public static final int WIDTH = 1280, HEIGHT = 720; // used later to set window size
    public AnalyticsInterface analyticsInterface;

    public CMB(AnalyticsInterface analyticsInterface) {
        this.analyticsInterface = analyticsInterface;
    }

    public void submitAnalyticData(String screen, String label, String info) {
        analyticsInterface.submitAnalytic(screen, label, info);
    }

    @Override
    public void create() {
        setScreen(new SplashScreen(this));
    }

}