TechHui

Hawaiʻi's Technology Community

I'm interested to hear about the use of Lua in Blue Mars. Toru, did you work on the golf game in Blue Mars? I seem to remember Kaz telling me it was under 1000 lines of Lua. Impressive!

Views: 94

Replies to This Discussion

Hi Daniel, Thank you for a comment!
I didn't work on the golf game, but I'm working on the online game framework. The golf game is implemented on the framework.
Maybe, now golf game is more than 1000 lines because we add some features to the game to make it fun. But very simple minigame (including online syncing, Flash UI, matchmaking, database access) can be less than 1000 lines.
Very interesting. Did you ever consider using ActionScript as the default scripting language for the entire game, given the fact you already integrated Flash into Blue Mars and use Flex for your UIs?

Toru Hisai: Maybe, now golf game is more than 1000 lines because we add some features to the game to make it fun. But very simple minigame (including online syncing, Flash UI, matchmaking, database access) can be less than 1000 lines

I look forward to trying it again!
Daniel Leuck said:
Very interesting. Did you ever consider using ActionScript as the default scripting language for the entire game, given the fact you already integrated Flash into Blue Mars and use Flex for your UIs?
I like ActionScript and I have created some Flash-based on-line communication system. But Lua is more simple and flexible because of coroutine and tail call. So I think Lua is more suitable for scripting games and some other interactive contents.

Everyday I write Lua and ActionScript and C++, so sometime I'm confused these syntax :D
Ah - I see. I remember going to a language conference in Japan where a developer demonstrated how the use of proper tail calls in Lua made it easy to create state machines.

Lua definitely looks much cleaner than ActionScript / Javascript. ActionScript's syntax is very verbose for a scripting language.

Toru Hisai: I like ActionScript and I have created some Flash-based on-line communication system. But Lua is more simple and flexible because of coroutine and tail call. So I think Lua is more suitable for scripting games and some other interactive contents.
Oh, did you attend the Lightweight Language? I have done some demo there with Gauche (Scheme interpreter). But after I moved to Hawaii, I couldn't attend that.
Yes, I did! Here is my post about the Lightweight Language Future conference in Tokyo.

Toru Hisai said:
Oh, did you attend the Lightweight Language? I have done some demo there with Gauche (Scheme interpreter). But after I moved to Hawaii, I couldn't attend that.
Toru Hisai said:
Hi Daniel, Thank you for a comment!
I didn't work on the golf game, but I'm working on the online game framework. The golf game is implemented on the framework.
Maybe, now golf game is more than 1000 lines because we add some features to the game to make it fun. But very simple minigame (including online syncing, Flash UI, matchmaking, database access) can be less than 1000 lines.

I have been trying to work on some scripts (new to LUA) but I know other scripting languages and C#, VB, bla bla...anyway...
I'm trying to make a script for a hot air balloon for one of the city owners there but I'm a little stumped with the vertical movement. I saw the commands from the crytek helicopter script that Blue Mars reports is not used (I didn't know if it meant the api commands or the script), so I'm wondering if there is still a way to script flight, since I saw a flying game in a youtube video about Blue Mars? Any help would be appreciated! Thanks.

RSS

Sponsors

web design, web development, localization

© 2022   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service