by Greg Taylor
File : tilefaq.12 Home site: x2ftp.oulu.fi : pub/msdos/programming/docs Version : 1.2 Released : 4-20-95
Tilefaq 1.2 Copyright 1995 Greg Taylor. All rights reserved. Appendix I Copyright 1995 Chris Palmer. All rights reserved.
#include <lua/lua.h> | |
#include <lua/lualib.h> | |
#include <lua/lauxlib.h> | |
#include <stdio.h> | |
static const char *_script = | |
"function init(t)\n" | |
" t['width'] = 320\n" | |
" t['height'] = 240\n" |
#include <stdio.h> | |
#include <math.h> | |
#include <time.h> | |
int ifloor(float x) | |
{ | |
const int i = (int)x; | |
return (x < 0.0f && x != i ? i - 1 : i); | |
} |
typedef unsigned char Pixel_t; | |
typedef struct _Point_t { | |
int x, y; | |
} Point_t; | |
typedef struct _Rectangle_t { | |
int x, y; | |
int width, height; | |
} Rectangle_t; |
--[[ | |
Copyright (c) 2018-2019 by Marco Lizza (marco.lizza@gmail.com) | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, | |
including commercial applications, and to alter it and redistribute it |
--[[ | |
Copyright (c) 2018 by Marco Lizza (marco.lizza@gmail.com) | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, | |
including commercial applications, and to alter it and redistribute it |