lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello everyone!

I have this:

--------------------
struct Sprite
{
	BITMAP *sheet, *img;
	int pos, xdir, ydir, anim, walking,
		x, y, sheetX, sheetY;
};

struct Sprite *loadSprite(const char*);
--------------------

How would I pass the Sprite struct over to Lua so that it can call loadSprite?

I can't have all of my sprites hardcoded on C because, well, there are many.

Thanks in advance, everyone!