Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    108
  • comments
    319
  • views
    138019

Python?

Sign in to follow this  
Rob Loach

401 views

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:



Sign in to follow this  


2 Comments


Recommended Comments

Nanaca Crash was a work of genuis. Unlike how I spelled the word "genuis".

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!