#include <string>
using namespace std;
extern "C"{
#include <lua.h>
#include <lualib.h>
#include <luaxlib.h>
}
lua_State* L = lua_open();
string currentMap = "TestString.Map";
static int ChangeLevel(lua_State *L)
{
currentMap = lua_tostring(L,-1);
}
int main( int argc, char* args[] )
{
luaL_openlibs(L);
int lua_checkstack (lua_State *L, int extra);
lua_register(L,"ChangeLevel",ChangeLevel);
luaL_dofile(L,"lua script filepath here.lua")
return 0;
}
----------------Lua Script-----------------
ChangeLevel("Maps/Derp.Map")
Just a basic string changing function, might be a few errors.
Re: Simple 2D RPG Engine
Posted: Thu Sep 08, 2011 3:54 pm
by techboy123
Nice work. I approve of the sound track selection and sprite selection
Re: Simple 2D RPG Engine
Posted: Wed Sep 14, 2011 4:25 pm
by THe Floating Brain
Nice dude keep up the good work!
Re: Simple 2D RPG Engine UPDATE
Posted: Fri Sep 23, 2011 6:09 pm
by Light-Dark
New video, shows more things that ive managed to finish over the past few weeks.
Re: Simple 2D RPG Engine
Posted: Mon Sep 26, 2011 10:15 am
by Light-Dark
Engine1ScrnShot.jpg (59.13 KiB) Viewed 19670 times
EngineScrnshot5.png (104.12 KiB) Viewed 19670 times
Some Screenshost one of a test friendly NPC and the one of the latest build with scenery for it i just used my object layer i should probally give it, its own layer but hey it works with my system.
Re: Simple 2D RPG Engine
Posted: Mon Sep 26, 2011 10:26 am
by BugInTheSYS
"noobisaurus" :D
Looks great I have to say. I'd change fonts though - Courier isnt really my favourite :D (Courier New for coding, yes, but for reading text.... nah)
Re: Simple 2D RPG Engine
Posted: Tue Sep 27, 2011 12:04 am
by Light-Dark
Martys club
EngineClubScrnShot1.png (221.8 KiB) Viewed 19632 times
Marathon 2 Durundal : Power of Seven
EngineClubScrnShot2.png (235.67 KiB) Viewed 19632 times
Got bored wanted to see if i could make a "club" so i got megman 3 tilles, black tiles and some rock tiles, did some scripting and voila you go up talk to marty and get some sweet music!
Re: Simple 2D RPG Engine
Posted: Mon Nov 14, 2011 4:02 pm
by Light-Dark
Major progress has been made in the last few months, only some of it visible.
Castle Area.
CastleArea.png (162.61 KiB) Viewed 19499 times
Lua Prompt.
LuaPrompt.png (130.91 KiB) Viewed 19499 times
A Prototype battle system.
BattleSystemProto.png (206.78 KiB) Viewed 19499 times
Re: Simple 2D RPG Engine
Posted: Mon Nov 14, 2011 5:53 pm
by dandymcgee
Hah, this project is sweet.
Re: Simple 2D RPG Engine
Posted: Mon Nov 14, 2011 6:55 pm
by superLED
You are coming along nicely ^^
Btw, see if you got some new private message :3
Re: Simple 2D RPG Engine
Posted: Mon Nov 14, 2011 7:45 pm
by Light-Dark
superLED wrote:You are coming along nicely ^^
Btw, see if you got some new private message :3
I know i got it, i just finished adding in the new tiles!,ill post a screen shot when im done!