1818import com .khomsi .game .tilesinteractive .Bush ;
1919import com .khomsi .game .tilesinteractive .DestructibleWall ;
2020import com .khomsi .game .tilesinteractive .SwitchPress ;
21+ import com .khomsi .game .tilesinteractive .animated .water .WaterBubbles ;
22+ import com .khomsi .game .tilesinteractive .animated .water .WaterHurricane ;
2123
2224public class PlaceObjects {
2325 GameManager gameManager ;
@@ -156,6 +158,7 @@ private void interactiveTilesOnMap0() {
156158 gameManager .interactTile [mapNum ][index ] = new Bush (gameManager , 21 , 28 );
157159 index ++;
158160 gameManager .interactTile [mapNum ][index ] = new Bush (gameManager , 28 , 28 );
161+
159162 }
160163
161164 private void interactiveTilesOnMap2 () {
@@ -192,6 +195,7 @@ public void setNpc() {
192195 npcOnMap0 ();
193196 npcOnMap1 ();
194197 npcOnMap2 ();
198+ setAnimatedTiles ();
195199 }
196200
197201 private void npcOnMap0 () {
@@ -204,6 +208,30 @@ private void npcOnMap0() {
204208 index ++;
205209 }
206210
211+ public void setAnimatedTiles () {
212+ drawWaterAnimationOnMap0 ();
213+ }
214+
215+ private void drawWaterAnimationOnMap0 () {
216+ int index = 0 ;
217+ int mapNum = 0 ;
218+ gameManager .animatedTiles [mapNum ][index ] = new WaterBubbles (gameManager );
219+ gameManager .animatedTiles [mapNum ][index ].worldX = GameManager .TILE_SIZE * 35 ;
220+ gameManager .animatedTiles [mapNum ][index ].worldY = GameManager .TILE_SIZE * 18 ;
221+ index ++;
222+ gameManager .animatedTiles [mapNum ][index ] = new WaterBubbles (gameManager );
223+ gameManager .animatedTiles [mapNum ][index ].worldX = GameManager .TILE_SIZE * 38 ;
224+ gameManager .animatedTiles [mapNum ][index ].worldY = GameManager .TILE_SIZE * 20 ;
225+ index ++;
226+ gameManager .animatedTiles [mapNum ][index ] = new WaterBubbles (gameManager );
227+ gameManager .animatedTiles [mapNum ][index ].worldX = GameManager .TILE_SIZE * 39 ;
228+ gameManager .animatedTiles [mapNum ][index ].worldY = GameManager .TILE_SIZE * 19 ;
229+ index ++;
230+ gameManager .animatedTiles [mapNum ][index ] = new WaterHurricane (gameManager );
231+ gameManager .animatedTiles [mapNum ][index ].worldX = GameManager .TILE_SIZE * 37 ;
232+ gameManager .animatedTiles [mapNum ][index ].worldY = GameManager .TILE_SIZE * 21 ;
233+ }
234+
207235 private void npcOnMap1 () {
208236 int mapNum ;
209237 int index ;
0 commit comments