Search code examples
luacoronasdkmoai

What is the right way to design a point and click game with Lua?(Corona)


I have some ideas,I have already drawn the scenes roughly and put them into corona. This is how I would think it would work.

    1.I have all the major scenes

    2.In each major scene ,there are mini scenes,which lead to smaller scenes with puzzles.

    3.I create a game.lua module so it would handle the game logics,and keep track of them.

    Example:

      A.Door is opened,puzzle number one is solved.
      B.Send a costume event to the game module.
    

    4.I need a separate module for inventory box so it acts as an overlay over other scenes. It also interacts with game module.

.
    I know you might say,wait till you get started,but Am I on the right Track?

    Do you have better suggestions or know any code examples(Corona Sdk,Lua,Moai,GiderosMobile)?

. Thanks in advance


Solution

  • I am making a game more or less on this style using Corona, there are a beta on google play.

    Corona SDK offers a API named Storyboard, that API allow you to code each scene as a lua module, and allows also you to load a scene as a "overlay".

    I guess that you would make each of your scenes a full Storyboard scene, and the inventory a "overlay" scene.

    The difference between overlay to a normal scene, is that when you load a overlay it triggers a event on the scene that was open instead of unloading that scene (And when the overlay is unloaded, it triggers another event)

    So yes, at least if you do it in Corona, you are in the right track!