Ignore:
Timestamp:
Jul 6, 2010, 11:37:47 PM (12 years ago)
Author:
sam
Message:

Support CSV .tmx files to get rid of that pathetic system() call.

File:
1 edited

Legend:

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

    r47 r74  
    77
    88#include "video.h"
    9 #include "tiler.h"
     9#include "tileset.h"
    1010#include "map.h"
    1111
     
    1313{
    1414    Video *video = new Video("Deus Hax", 640, 480);
    15     Tiler *tiler = new Tiler();
     15    Tileset *tileset = new Tileset();
    1616    Map *map = new Map("maps/testmap-grass.tmx");
    1717
     
    2020        video->Clear();
    2121
    22         map->Draw(tiler);
     22        map->Draw(tileset);
    2323
    2424        /* Test stuff */
     
    2828        playery = playery * (480 - 32) / 480;
    2929
    30         tiler->AddTile(50, playerx, playery, 1);
     30        tileset->AddTile(50, playerx, playery, 1);
    3131
    32         tiler->Render();
     32        tileset->Render();
    3333        video->Refresh(33.33333f);
    3434
     
    5050
    5151    delete map;
    52     delete tiler;
     52    delete tileset;
    5353    delete video;
    5454
Note: See TracChangeset for help on using the changeset viewer.