Changeset 862
- Timestamp:
- Aug 26, 2011, 7:20:39 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/monsterz/title.cpp
r860 r862 44 44 TileSet *event[7]; 45 45 46 Sprite *logo_sprite; 47 46 48 enum 47 49 { … … 138 140 139 141 data->logo = Tiler::Register(PNG_TITLE_LOGO, vec2i(380, 181), 0, 1.0f); 142 data->logo_sprite = new Sprite(data->logo, 0); 143 data->logo_sprite->position = vec3(26, 250, 3); 144 Ticker::Ref(data->logo_sprite); 145 140 146 data->ground = Tiler::Register(PNG_TITLE_GROUND, vec2i(384, 80), 0, 1.0f); 141 147 data->ground_pos = vec2i((vec2)(bbox[1] - bbox[0]) / vec2i(2, 4)) … … 375 381 vec3i(data->ground_pos.x + pos.x, 376 382 data->ground_pos.y + pos.y, 1), 0); 377 378 /* The logo, on top of the rest. */379 Scene::GetDefault()->AddTile(data->logo, 0, vec3i(26, 250, 3), 0);380 383 } 381 384 … … 389 392 Input::UntrackMouse(this); 390 393 Tiler::Deregister(data->logo); 394 Ticker::Unref(data->logo_sprite); 391 395 Tiler::Deregister(data->ground); 392 396 Tiler::Deregister(data->title); -
trunk/src/Makefile.am
r860 r862 11 11 text.cpp text.h emitter.cpp emitter.h numeric.h hash.cpp hash.h \ 12 12 worldentity.cpp worldentity.h image.cpp image.h gradient.cpp gradient.h \ 13 platform.cpp platform.h \13 platform.cpp platform.h sprite.cpp sprite.h \ 14 14 \ 15 15 sdlapp.cpp sdlapp.h sdlinput.cpp sdlinput.h \ -
trunk/src/core.h
r860 r862 39 39 #include "gradient.h" 40 40 #include "sample.h" 41 #include "sprite.h" 41 42 #include "text.h" 42 43 #include "tileset.h"
Note: See TracChangeset
for help on using the changeset viewer.