Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Projet INF443 Maé
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noé ARTRU
Projet INF443 Maé
Commits
2e123f19
Commit
2e123f19
authored
1 year ago
by
Noé
Browse files
Options
Downloads
Patches
Plain Diff
Projectiles structure with elemental types
parent
29d1d011
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projet-code/scenes_inf443/base/src/scene.cpp
+2
-1
2 additions, 1 deletion
projet-code/scenes_inf443/base/src/scene.cpp
projet-code/scenes_inf443/base/src/scene.hpp
+2
-1
2 additions, 1 deletion
projet-code/scenes_inf443/base/src/scene.hpp
with
4 additions
and
2 deletions
projet-code/scenes_inf443/base/src/scene.cpp
+
2
−
1
View file @
2e123f19
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
projet-code/scenes_inf443/base/src/scene.hpp
+
2
−
1
View file @
2e123f19
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment