Working on multi-biomes.

This commit is contained in:
Quentin BAZIN 2013-02-26 03:59:25 +01:00
parent ab7f197c14
commit a0991a45fb
4 changed files with 12 additions and 6 deletions

8
TODO
View File

@ -1,13 +1,15 @@
- Multi-biome: Working on
- Improve multi-biome display
- Fix cube selected from a biome to another one bug
- Fix problem in manageEvents
- Big map && map generation
- unordered_map for maps
- Pause menu
- Main menu
- PNG textures
- Lightning
- Lightmmaing
- Improve vect3D
- Improve cursor
- Move cube tests in another file
- Multi-biome
- Fix multi-biome problem in manageEvents
- Save and load map
- Autofire

View File

@ -34,6 +34,8 @@ class Biome {
int y() const { return m_y; }
int z() const { return m_z; }
std::vector<Cube*> cubes() const { return m_cubes; }
private:
int m_x;
int m_y;

View File

@ -135,8 +135,6 @@ Biome::~Biome() {
}
void Biome::draw() {
Scene::testCubes(m_cubes);
glPushMatrix();
glTranslatef(m_x, m_y, m_z);

View File

@ -407,7 +407,11 @@ void Scene::drawField() {
biome = findNearestBiome(player->x(), player->y(), player->z());
biome->draw();
//findNearestBiome(player->x(), player->y(), player->z())->draw();
testCubes(biome->cubes());
findNearestBiome(player->x() + 16, player->y(), player->z())->draw();
findNearestBiome(player->x(), player->y() + 16, player->z())->draw();
findNearestBiome(player->x() + 16, player->y() + 16, player->z())->draw();
glPushMatrix();
glLoadIdentity();