Changeset 562

Show
Ignore:
Timestamp:
05/23/08 14:33:22 (8 months ago)
Author:
LeoD
Message:

stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/defend/Graphics.d

    r561 r562  
    1919import defend.Config : defendConfig; 
    2020import defend.Camera : MainCamera; 
    21 import defend.FogOfWar : FogOfWar; 
    2221import defend.objects.Core : GameObjectManager; 
    2322import defend.objects.SceneNode : GameObjectMesh; 
  • trunk/src/defend/MapGenerator.d

    r542 r562  
    7373            if(players.isPlayer(cast(player_id_t)1)) 
    7474                localCreate(cast(player_id_t)1, "house", 40, 30); 
    75             else 
    76               localCreate(cast(player_id_t)0, "house", 40, 30); 
     75            //else 
     76            //    localCreate(cast(player_id_t)0, "house", 40, 30); 
    7777             
    7878            version(none) for(int i = 0; i < 10; i++) 
  • trunk/src/defend/game/Game.d

    r561 r562  
    207207    void logMemoryUsage() 
    208208    { 
    209         logger.trace("memory usage is {} bytes ({}kb)", 
     209        logger.trace("manual memory usage {}b ({}kb), gc usage {}b ({}kb)", 
    210210                     getMemoryUsage(), 
    211                      getMemoryUsage() / 1024); 
     211                     getMemoryUsage() / 1024, 
     212                     gc_stats().usedsize, 
     213                     gc_stats().usedsize / 1024); 
    212214    } 
    213215     
  • trunk/src/defend/game/hud/MiniMap.d

    r561 r562  
    7171 
    7272    this() 
    73     {       
     73    { 
    7474        if(!texture) 
    7575        { 
  • trunk/src/defend/objects/types/Citizen.d

    r555 r562  
    270270                    if(!isStandingNearby(building)) 
    271271                    { 
    272                         // TODO: uhm, where's logger gone? D: 
    273272                        debug(gameoobjects) 
    274273                            logger.warn("trying to build while not staying nearby a building"); 
  • trunk/src/defend/objects/types/House.d

    r555 r562  
    2727            miniPic = "data/minipics/house.png"; 
    2828            properties[GameObject.Property.MaxLife] = 2000; 
    29             properties[GameObject.Property.Sight] = 50; 
     29            properties[GameObject.Property.Sight] = 70; 
    3030        } 
    3131         
  • trunk/src/defend/terrain/Terrain.d

    r561 r562  
    167167                 
    168168                vec3 normal = getNormalForImage(x, z, size); 
    169                 vec3 col = vec3(.15, 0.2, .3) * normal.y; // ambient 
     169                vec3 col = vec3(.15, 0.2, .25) * normal.y; // ambient 
     170                //vec3 col = vec3(.2, .2, .2) * normal.y; 
    170171                 
    171172                if(!rayIntersection(ray)) 
  • trunk/src/gen/gui/Renderer.d

    r555 r562  
    1313import gen.rend.opengl.Wrapper; 
    1414 
    15 // TODO: abstract gui renderer; don't use OGL directly 
    1615class GuiRenderer 
    1716{ 
  • trunk/src/gen/input/Windows.d

    r465 r562  
    1313static this() 
    1414{ 
    15     // TODO: Complete windows input translation table 
    16      
    1715    translation[VK_ESCAPE]   = KeyType.Escape; 
    1816    translation[VK_LEFT]       = KeyType.Left; 
  • trunk/src/gen/rend/opengl/Renderer.d

    r555 r562  
    412412        array.bind(); 
    413413         
    414         debug if(indices) 
    415             statistics.triangles_rendered += (indices ? indices.length : array.length) / 3; 
     414        debug statistics.triangles_rendered += (indices ? indices.length : array.length) / 3; 
    416415         
    417416        array.format.set(array.offset()); 
  • trunk/src/gen/scene/Skybox.d

    r465 r562  
    4343        float o = 0.0; //+ onePixel; 
    4444         
    45         // TODO: Remove array literals, they use GC memory 
    4645        vertices[0].setVertices([vertex(-l, -l, -l, o, t), vertex(l, -l, -l, t, t), 
    4746                                 vertex(l, l, -l, t, o), vertex(-l, l, -l, o, o)]);