Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 269 | chris | 1 | package com.gebauz.pingk.gamestates; |
| 2 | |||
| 3 | import com.badlogic.gdx.Gdx; |
||
| 4 | import com.badlogic.gdx.graphics.GL20; |
||
| 5 | import com.gebauz.Bauzoid.app.Game; |
||
| 6 | import com.gebauz.Bauzoid.gamestates.BaseGameState; |
||
| 7 | import com.gebauz.Bauzoid.math.Matrix4; |
||
| 8 | import com.gebauz.pingk.game.GameConsts; |
||
| 9 | |||
| 10 | public class TitleState extends BaseGameState |
||
| 11 | { |
||
| 12 | |||
| 13 | public TitleState(Game game) |
||
| 14 | { |
||
| 15 | super(game); |
||
| 16 | setFading(true, true); |
||
| 17 | } |
||
| 18 | |||
| 19 | @Override |
||
| 20 | public void init() |
||
| 21 | { |
||
| 22 | |||
| 23 | } |
||
| 24 | |||
| 25 | @Override |
||
| 26 | public void exit() |
||
| 27 | { |
||
| 28 | |||
| 29 | } |
||
| 30 | |||
| 31 | @Override |
||
| 32 | public void update(float deltaTime) |
||
| 33 | { |
||
| 34 | |||
| 35 | } |
||
| 36 | |||
| 37 | @Override |
||
| 38 | public void render() |
||
| 39 | { |
||
| 40 | Gdx.gl.glClearColor(0.05f, 0.05f, 0.05f, 0.0f); |
||
| 41 | Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT); |
||
| 42 | |||
| 43 | getRenderStates().projection = Matrix4.createOrtho( |
||
| 44 | 0.0f, |
||
| 45 | GameConsts.VIRTUAL_SCREEN_WIDTH-1, |
||
| 46 | GameConsts.VIRTUAL_SCREEN_HEIGHT-1, |
||
| 47 | 0.0f, |
||
| 48 | 0.0f, |
||
| 49 | 1.0f |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | |||
| 53 | } |