projects
/
universe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[universe.git]
/
move_square.cc
diff --git
a/move_square.cc
b/move_square.cc
index
a2bbda7
..
664b70f
100644
(file)
--- a/
move_square.cc
+++ b/
move_square.cc
@@
-44,7
+44,7
@@
public:
_target->set_position(_square_size/2, _square_size/2 + (world_height - _square_size) * drand48(), 0);
_target->set_speed(0, 0, 0);
_target->set_position(_square_size/2, _square_size/2 + (world_height - _square_size) * drand48(), 0);
_target->set_speed(0, 0, 0);
- universe->initialize(_target);
+ universe->initialize
_polygon
(_target);
universe->add_polygon(_target);
if(degree == 4) {
universe->add_polygon(_target);
if(degree == 4) {
@@
-57,7
+57,7
@@
public:
obstacle->set_position(world_width/2, world_height/2, 0);
obstacle->set_speed(0, 0, 0);
obstacle->_nailed = true;
obstacle->set_position(world_width/2, world_height/2, 0);
obstacle->set_speed(0, 0, 0);
obstacle->_nailed = true;
- universe->initialize(obstacle);
+ universe->initialize
_polygon
(obstacle);
universe->add_polygon(obstacle);
}
}
universe->add_polygon(obstacle);
}
}