|
|
@@ -22,9 +22,8 @@ static unsigned int next_id() {
|
|
|
}
|
|
|
|
|
|
entity::entity(Json::Value const & json, graphics::manager const & mgr)
|
|
|
- : identity<entity>(next_id()), in_scene(), last_position({-1, -1}),
|
|
|
- velocity(to_vec2(json["velocity"])), acceleration(),
|
|
|
- angular_velocity(0.f), render_info_(to_object(json, mgr)), frame_index(0),
|
|
|
+ : identity<entity>(next_id()), velocity(to_vec2(json["velocity"])),
|
|
|
+ render_info_(to_object(json, mgr)),
|
|
|
frame_texture_coords({make_vector(0.f, 0.f)}),
|
|
|
scale(json["size"].asFloat()), collides_with(0), collides_as(0) {
|
|
|
render_info_.location.size *= scale;
|