#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0

    Question Card game card effects language - Pros and cons


    I'm thinking about creating a card game complete with scripted effects.

    I've been going over the pros and cons of each possible language, but I would really like the other programmers out there to tell me what you see as pros and cons for this task.

    I'm planning to use C++ as the core language and possibly Python for prototyping.

    The languages I'm currently pondering are:
    Compiled as so's/dll's:
    • C++
    • Objective-C


    Scripted:
    • Python (using TinyPy)
    • Lua
    • Javascript (Probably using Mozilla's SpiderMonkey)


    The key thing is that I plan to have each of the cards being able to respond to events (eg. onTap, onActivate, onBlock, onDestroy, etc.) if they have an effect in this circumstance. Of course, the exact implementation of this depends on the language used, so probably sigc++ for C++, protocols for Obj-C and function existence in scripted languages.

    I'm also open to any other language options that anyone may think of. I thought about writing my own language, but there is a lot of effort involved and there are plenty on useful languages already in existence anyway.

    So feel free to post any pros and cons you can think of to help me decide how to proceed.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0
    Any one got any thoughts?
  4. #3
  5. Lord of the Dance
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2003
    Posts
    3,635
    Rep Power
    1945
    Which platform(s) will you target? mobile? web? PC? others?
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0
    Originally Posted by MrFujin
    Which platform(s) will you target? mobile? web? PC? others?
    PC. Windows, Mac and Linux with Linux as the initial dev platform.
  8. #5
  9. Lord of the Dance
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2003
    Posts
    3,635
    Rep Power
    1945
    You can also take a look at Java, as it has been created to be cross-platform. For example with the idea that you can compile it once and then run it all platform.

    Can't tell how good or bad it will be to use the script language like python and lua.

IMN logo majestic logo threadwatch logo seochat tools logo