How i can word game?

Hello my friends :slight_smile:

I new started Defold Engine.I would like make a game as this word game.How to i can it?

You need to learn the engine and the Lua language first. Start by doing some of our tutorials. When you have a good understanding of the core concepts then it’s a lot easier to help you.

1 Like

most of them learned. How do I design the letter system?
how can I do it ?

I use json datebase e.g
[
{
“questionID”: “1”,
“questionSubject”: “Kitchen”,
“questionValue”: “KNIFE”,
}
]

How to show this json dates as it picture ?

Ok. Use json.decode() to parse the json into a Lua table. You get the length of a string using the # operator. You get individual characters using string.sub(). Each letter in the game should be a game object with a sprite for the background and a label for the letter. Use a collision object on each + cursor collision object that follows touch/mouse to detect which one the user clicks on. Alternatively you build it using gui box and text nodes + gui.pick_node(). Use a Lua table to associate the game object id/gui node id (table key) with a letter (table value) for easy look-up.

3 Likes