Python as a game scripting language

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
gamenovice
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 78
Joined: Fri Nov 12, 2010 7:49 pm
Current Project: wii u dev, sdl, and some unity 3D
Favorite Gaming Platforms: PC, GAMEBOY, GAMECUBE, WII, 3DS,PS2
Programming Language of Choice: C#,C++,Java
Location: Tampa,FL
Contact:

Python as a game scripting language

Post by gamenovice »

Hey guys,

I was wondering about the following situation:

given I have a small rpg engine written in python, which essentially loads tile maps, characters and dialogue, along with some basic menus, and has a basic gameloop, assuming I needed to script things like cutscenes or parts of dialogue, would it be recommended that i now wrap in lua to said engine, or would i be better off just scripting away the game scripts using python directly?

It's a little out there, but any input regarding the matter would help a ton!

Thanks guys,
game

p.s. if i'm not clear on any part of my question, please let me know
without code, we wouldnt have life as we know it...
K-Bal
ES Beta Backer
ES Beta Backer
Posts: 701
Joined: Sun Mar 15, 2009 3:21 pm
Location: Germany, Aachen
Contact:

Re: Python as a game scripting language

Post by K-Bal »

Since Python is already a scripting language I can't think of any reason to use Lua on top of it.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Python as a game scripting language

Post by Falco Girgis »

You stand to gain nothing by extending a scripting language with another scripting language. You do however stand to lose performance, time, and increase your executable size greatly...

The entire point of using an embedded scripting language is the ease of development and not having to recompile code. Both of these points are already covered by Python alone.
Post Reply