Ignore:
Timestamp:
Jul 7, 2010, 2:11:16 AM (12 years ago)
Author:
sam
Message:

Much better resource allocation and release. Scene manager stub.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test-map.cpp

    r74 r75  
    77
    88#include "video.h"
    9 #include "tileset.h"
     9#include "tiler.h"
    1010#include "map.h"
    1111
     
    1313{
    1414    Video *video = new Video("Deus Hax", 640, 480);
    15     Tileset *tileset = new Tileset();
    1615    Map *map = new Map("maps/testmap-grass.tmx");
    1716
     
    2019        video->Clear();
    2120
    22         map->Draw(tileset);
     21        //map->Draw(tiler);
    2322
    2423        /* Test stuff */
     
    2827        playery = playery * (480 - 32) / 480;
    2928
    30         tileset->AddTile(50, playerx, playery, 1);
     29        //tiler->AddTile(50, playerx, playery, 1);
    3130
    32         tileset->Render();
     31        //tiler->Render();
    3332        video->Refresh(33.33333f);
    3433
     
    5049
    5150    delete map;
    52     delete tileset;
    5351    delete video;
    5452
Note: See TracChangeset for help on using the changeset viewer.