Python?

posted in Reminiscence
Published March 22, 2005
Advertisement
While taking a look at Python I decided that I might as well make a Dev-C++ DevPak for it as one didn't exist yet. So, you can find it here. I haven't gotten too much into the language yet, but I did get an interpreter for it onto my Pocket PC. I'll eventually do up a simple tic tac toe clone just to get a grasp on the language before doing anything that involves wrapping it to C.

With Lua I reformatted the class to have more of a "homely" feel:

#include #include "scriptlua.h"int main(){    ScriptLua lua;    lua.LoadFile("somefile.lua");    lua["SomeVariable"] = 20;    lua.CallFunction("SomeFunction", "arg1", lua["SomeVariable"].ToInteger());    std::cout << "SomeVariable is: " << lua["SomeVariable"].ToString();    return 0;}


But what does all this scripting stuff have to do with the engine or anything else that I'm working on? I have no clue and thanks to this journal entry or I'd be lost forever. I shall get back on track. Asteroids and then a quick and dirty tile engine to create a snake clone (where the snake eats you!... Or something like that, I don't have all the gameplay details yet).

Random Interest

I finally retire in Nanaca Crash:



Previous Entry More Lua
Next Entry Hmmmmm, Ogre
0 likes 2 comments

Comments

Mushu
Nanaca Crash was a work of genuis. Unlike how I spelled the word "genuis".
March 23, 2005 11:48 PM
Washu
Crap, you beat me by 300m.
March 29, 2005 11:06 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Been a while!

1257 views

Hello XNA

1511 views

Pong!

1344 views

Busy * 2

1113 views
Advertisement