Changeset 1a1e8c7 in advance-wars for src/com/medievaltech/advancewars/GameView.java
- Timestamp:
- Jan 31, 2011, 11:44:53 PM (14 years ago)
- Branches:
- master
- Children:
- 00c432c
- Parents:
- abe7b3d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/medievaltech/advancewars/GameView.java
rabe7b3d r1a1e8c7 1 1 package com.medievaltech.advancewars; 2 2 3 import com.medievaltech.game.*; 3 4 import com.medievaltech.gui.*; 4 5 … … 47 48 48 49 /** Paint to draw the lines on screen. */ 49 private Paint mLinePaint, mTextPaint, mButtonPaint, mTilePaint1, mTilePaint2; 50 private Paint mLinePaint, mTextPaint, mButtonPaint, mTilePaint1, mTilePaint2, 51 mUnitPaint; 50 52 51 53 private Map mMap; … … 88 90 mTilePaint2.setAntiAlias(true); 89 91 mTilePaint2.setARGB(255, 0, 0, 255); 92 93 mUnitPaint = new Paint(); 94 mUnitPaint.setAntiAlias(true); 95 mUnitPaint.setARGB(255, 255, 0, 0); 90 96 91 97 wndMainMenu = new com.medievaltech.gui.Window(0, 0, 320, 450);; … … 106 112 for(int y=0; y<mMap.getHeight(); y++) { 107 113 if(land) 108 mMap.setTile(x, y, grassTile);114 mMap.setTile(x, y, new Tile(grassTile)); 109 115 else 110 mMap.setTile(x, y, oceanTile);116 mMap.setTile(x, y, new Tile(oceanTile)); 111 117 land = !land; 112 118 } 113 119 land = !land; 114 120 } 121 122 mMap.getTile(2, 3).addUnit(new Soldier(mUnitPaint)); 123 mMap.getTile(5, 7).addUnit(new Soldier(mUnitPaint)); 115 124 116 125 mGameState = GameState.MAIN_MENU;
Note:
See TracChangeset
for help on using the changeset viewer.