Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 269 | chris | 1 | package com.gebauz.pingk.entities; |
| 2 | |||
| 3 | import com.gebauz.Bauzoid.graphics.Font; |
||
| 4 | import com.gebauz.Bauzoid.math.Vector4; |
||
| 5 | import com.gebauz.pingk.PingkCustomServices; |
||
| 6 | import com.gebauz.pingk.game.GameConsts; |
||
| 7 | import com.gebauz.pingk.game.GameLogic; |
||
| 8 | |||
| 9 | public class MenuBar extends Entity |
||
| 10 | { |
||
| 11 | private Font mFont = null; |
||
| 12 | |||
| 13 | public MenuBar(GameLogic gameLogic) |
||
| 14 | { |
||
| 15 | super(gameLogic); |
||
| 16 | } |
||
| 17 | |||
| 18 | @Override |
||
| 19 | public void init() |
||
| 20 | { |
||
| 21 | PingkCustomServices services = (PingkCustomServices)getGameLogic().getGame().getCustomServices(); |
||
| 22 | mFont = services.getFont(); |
||
| 23 | } |
||
| 24 | |||
| 25 | @Override |
||
| 26 | public void exit() |
||
| 27 | { |
||
| 28 | // release reference only |
||
| 29 | mFont = null; |
||
| 30 | } |
||
| 31 | |||
| 32 | @Override |
||
| 33 | public void update(float deltaTime) |
||
| 34 | { |
||
| 35 | |||
| 36 | } |
||
| 37 | |||
| 38 | @Override |
||
| 39 | public void render() |
||
| 40 | { |
||
| 41 | mFont.drawText("TEST", 10, GameConsts.VIRTUAL_SCREEN_HEIGHT - 20, new Vector4(1.0f, 1.0f, 1.0f, 1.0f)); |
||
| 42 | } |
||
| 43 | } |