Working on multi-biomes.
This commit is contained in:
parent
ab7f197c14
commit
a0991a45fb
8
TODO
8
TODO
@ -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
|
||||
|
@ -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;
|
||||
|
@ -135,8 +135,6 @@ Biome::~Biome() {
|
||||
}
|
||||
|
||||
void Biome::draw() {
|
||||
Scene::testCubes(m_cubes);
|
||||
|
||||
glPushMatrix();
|
||||
|
||||
glTranslatef(m_x, m_y, m_z);
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user