Skip to content
Snippets Groups Projects
Commit 2e123f19 authored by Noé's avatar Noé
Browse files

Projectiles structure with elemental types

parent 29d1d011
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
#include "bird.hpp"
#include "bat.hpp"
#include "terrain.hpp"
#include "projectile.hpp"
using namespace cgp;
int num_trees = 200;
......@@ -95,7 +96,7 @@ void scene_structure::initialize()
chain1.initialize();
bouncing.initialize(10); //10 balls
bat1.initialize_bat();
projectiles.initialize(0);
projectiles.initialize();
}
void scene_structure::initialize_mvt()
......
......@@ -8,6 +8,7 @@
#include "bird.hpp"
#include "chain.hpp"
#include "bat.hpp"
#include "projectile.hpp"
// This definitions allow to use the structures: mesh, mesh_drawable, etc. without mentionning explicitly cgp::
......@@ -71,7 +72,7 @@ struct scene_structure : cgp::scene_inputs_generic {
bird bird1;
chain chain1;
bat bat1;
ball projectiles;
projectile projectiles;
// ****************************** //
// Functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment