Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1671 | chris | 1 | package com.gebauz.crawler.gamestates; |
| 2 | |||
| 3 | import com.gebauz.bauzoid.game.Game; |
||
| 4 | import com.gebauz.bauzoid.gamestates.BaseLoadingScreen; |
||
| 5 | import com.gebauz.crawler.GameConsts; |
||
| 6 | |||
| 7 | public class LoadingScreen extends BaseLoadingScreen |
||
| 8 | { |
||
| 9 | |||
| 10 | // Constants======================================================================================== |
||
| 11 | |||
| 12 | // Embedded Types=================================================================================== |
||
| 13 | |||
| 14 | // Fields=========================================================================================== |
||
| 15 | |||
| 16 | // Methods========================================================================================== |
||
| 17 | |||
| 18 | public LoadingScreen(Game game) |
||
| 19 | { |
||
| 20 | super(game); |
||
| 21 | } |
||
| 22 | |||
| 23 | @Override |
||
| 24 | public void update(float deltaTime) |
||
| 25 | { |
||
| 26 | |||
| 27 | } |
||
| 28 | |||
| 29 | @Override |
||
| 30 | public void render() |
||
| 31 | { |
||
| 32 | getGraphics().clear(0, 0, 0, 0.0f); |
||
| 33 | |||
| 34 | getRenderStates().projection.setOrtho( |
||
| 35 | 0.0f, |
||
| 36 | GameConsts.VIRTUAL_SCREEN_WIDTH-1, |
||
| 37 | GameConsts.VIRTUAL_SCREEN_HEIGHT-1, |
||
| 38 | 0.0f, |
||
| 39 | 0.0f, |
||
| 40 | 1.0f |
||
| 41 | ); |
||
| 42 | |||
| 43 | /*SpriteInstance sp = ((BurutaruCustomServices)getGame().getCustomServices()).getLoadingSpriteInstance(); |
||
| 44 | |||
| 45 | sp.transform.x = 30; |
||
| 46 | sp.transform.y = GameConsts.VIRTUAL_SCREEN_HEIGHT - 50 + x; |
||
| 47 | sp.transform.w = 40; |
||
| 48 | sp.transform.h = 40; |
||
| 49 | sp.setCurrentFrame((int)((getGame().getTime()*sp.getNumFrames()) % (float)(sp.getNumFrames()))); |
||
| 50 | sp.transform.centerPivot(); |
||
| 51 | |||
| 52 | sp.render(); |
||
| 53 | |||
| 54 | BurutaruCustomServices s = ((BurutaruCustomServices)getGame().getCustomServices()); |
||
| 55 | //s.getPrettyFont().drawText(mTexts[mTextIndex] + " - " + (int)(getAssetManager().getProgress() * 100) + "%", 60, GameConsts.VIRTUAL_SCREEN_HEIGHT - 60, GameConsts.WHITE_COLOR, 1.0f); |
||
| 56 | s.getPrettyFont().drawText(mTexts[mTextIndex], 60, GameConsts.VIRTUAL_SCREEN_HEIGHT - 60, GameConsts.WHITE_COLOR, 1.0f);*/ |
||
| 57 | } |
||
| 58 | |||
| 59 | // Getters/Setters================================================================================== |
||
| 60 | |||
| 61 | } |