This project contains everything I've been experimenting with over the last three weeks. I thought I would share it, since some of you may face similar problems down the road. I should note that I am pretty new to andEngine and programming in general so don't expect anything too fancy. Also some of the code may not be obvious at first, so if you need an explanation of anything let me know.
This project covers:
-SplashScreen, Options, and Menus
-Basic A* pathing
-TMXMap switching w/AsyncTask(including multiple entrances and exits)
-Tile Animation
-Tile Properties (Events triggered under certain conditions)
Here is what you'll see when you run the project:
At
1) There is the layer where the player can pass under(really simple to do)
2) There are the animating tiles
3) There is the exit to the large Map (it was large for testing purposes)
4) There is my shack that you can enter
5) There is the second entrance to the large map
Note: The large map takes anywhere from 10 to 30 seconds to load depending on your device. If you use the emulator or are connected to the debugger then it may take magnitudes longer. However, the map is stored in memory so you only need to load it once then it should take less then a couple seconds to load if you go back in
I should also note that the Dpad still needs works.
EDIT: I forgot to mention that the grey tiles at the top change when the player steps on them.
**************************************************UPDATE*******************************************************
So after many delays I have finally updated this project to GLES 2 and have updated the code such that it is more clean and easier to understand (at least I hope it is
This project includes:
-SplashScreen, Options, and Menus
-Scene switching
-Sequences
-Basic A* pathing
-TMXMap switching w/AsyncTask(including multiple entrances and exits)
-Tile Animation
-Tile Properties (Events triggered under certain conditions)
I am not completely happy with this build but I figured that something is better than nothing and this should help the people who have been struggling to get started with GLES2. So here is what you will see when you press 'play' on the menu:
At
1) There is the layer where the player can pass under(really simple to do)
2) There are the animating tiles
3) There is the exit to the second Map (it was large for testing purposes)
4) There is the second entrance to the second map
5) There is a layer that changes tiles when you walk across it
*Just like last time the DPad still needs some work. Its a little jittery.
If you find this useful then please go to my new project page and help test and support my new project. I've also started a kickstarter for the project which has just gone live (as of 12/18/12) and could use some support as well...if you know what I mean
Project page: http://www.andengine.org/forums/project-development-blogs/evocreo-t10232.html
Kickstarter: http://kck.st/U7st4i
EDIT: I forgot, I made edits to andEngine so you will need to download the andengine project and the TMXTiled Extension I used as well as the tiled game example. If you choose not to then, you will need to edit the engine yourself whenever you get errors.
