This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- UPDATE | |
-- | |
local accum = 0 | |
function Game:update(dt) | |
accum = accum + dt | |
if (accum < 1/60) then | |
return | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.h | |
// HelloSDL | |
// | |
// Created by Richard Carter on 5/30/11. | |
// Copyright 2011 Richard Carter. All rights reserved. | |
// | |
static const int tile_size = 16; | |
static const int window_width = 800; |