• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0

Advice on choosing a scripting language for game/editor combo - Python, Lua, AngelScript or a mix?

0 posts in this topic

Hello all,


Apologies for yet another "scripting language war post", but after having spent several days reading about scripting languages, deciding on the one to use, then reading another article and starting to have doubt about my choice, I thought I would ask you guys for opinions/suggestions.


I am reasonably comfortable with Python, have "some" experience with Lua - I have never touched Angelscript but I understand it is pretty much scripting in C++.


I am currently writing a game engine / remote-editor combo in C++ and have been trying to decide what scripting language to use - it is obviously not an easy decision but I could end up wasting a great deal of time if I made the "wrong choice". My motivations for embedding/extending a scripting language are the following :


  • Remote-editor
    • Plugin system to extend the editor's functionality (either authored by myself or others)
    • Export/import & conditioning assets to game-friendly formats
  • Game
    • High level logic (AI, UI, choreography) - no high-performance code - just "icing on the cake" & plumbing work
    • Modules / Player Mods (new assets / compound game objects)


I have several criteria that I am keen on, including :

  • One scripting language for both the editor/game
  • Scripting language also embedded/supported in popular art/tools is a plus (e.g. Blender, 3DSmax, etc.)
  • Fast enough / Compatible with mobile platforms for the game-side given my expected usage
  • Feature rich - Anything that would help users and/or myself writing complex/extensive plugins without any dependencies on the game/editor support (e.g. supporting version control, IO, etc.)
  • Not too bothered about memory footprint/exe size (come on, we're in 2014, an extra 10MB is not going to hurt...)


From those criteria, I have derived the following short-list :


  • AngelScript
    • Never used it before but I am well accustomed to  C++
    • Fast
    • Statically typed (as a programmer, a plus - not necessarily for the average Joe)
    • C++ syntax and very easy to embed - programmer's heaven
    • Lightweight - does not come with any libraries
  • Python
    • Comfortable with & to my liking
    • Popular & trusted
    • More fiddly to embed (although boost.python should help I read?)
    • Reasonably fast
    • Dynamically typed
    • Heavy but feature rich (loads of libraries/modules)
    • Very good documentation (probably the best I have found)
    • Supported & used by a number of tools (e.g. Blender, 3DS Max, etc.) facilitating 
  • Lua
    • Used it a little & don't have any problems with it
    • Seems to be "THE game scripting language" or so I keep reading
    • Fast (supposedly faster than Python?)
    • Easy to embed
    • Dynamically typed
    • Relatively lightweight but has some libraries
    • Documentation a little bit drier but still present
    • Not really as popular as Python on the third-party tools-side 


So far, I would say that I am kind of veering towards Python because it feels "wiser" & more "stable". AngelScript seems like a good solution for programmers alike - but not so much for wannabe modders ; similarly I think the time gained on embedding the language does not counteract the lack of libraries (not in my case at least).

Finally, I keep reading posts about people saying how Lua is so much more superior/faster to Python - to the point where it sounds like Python is a pre-historial artifact that can't add two bytes together. It is difficult to assess the benchmarks given they are usually not representative of a typical in-game usage (I'm sorry but how often do you calculate recursive fibonnacci sequences in a game).


Any suggestions / personal experiences would be very much appreciated,


Thanks in advance,


Share this post

Link to post
Share on other sites

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
Sign in to follow this  
Followers 0