From 345f7996644e10c19116f985e0223d0d6518389b Mon Sep 17 00:00:00 2001 From: GammelJan Date: Mon, 11 May 2020 21:24:16 +0200 Subject: [PATCH] asdf --- .../com/dungeoncrawler/view/EndScreen.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 core/src/com/dungeoncrawler/view/EndScreen.java diff --git a/core/src/com/dungeoncrawler/view/EndScreen.java b/core/src/com/dungeoncrawler/view/EndScreen.java new file mode 100644 index 0000000..7a3b465 --- /dev/null +++ b/core/src/com/dungeoncrawler/view/EndScreen.java @@ -0,0 +1,41 @@ +/* + * 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.dungeoncrawler.view; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.g2d.Sprite; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; +import com.badlogic.gdx.graphics.g2d.TextureRegion; +import com.badlogic.gdx.math.Intersector; +import com.badlogic.gdx.math.Rectangle; + +/** + * + * @author Jan + */ +public class EndScreen { + + + public void render (SpriteBatch batch, float volume) { + Gdx.gl.glClearColor(0, 0, 0, 1); + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + + batch.begin(); + batch.end(); + } + + public int click(int x, int y){ // prueft ob cursor mit button (START) ueberlappt + + + //if(Intersector.overlaps(r, backButtonSprite.getBoundingRectangle())){ + // return 5; //proceed Game + //} + + return -1; + + } +}