PricingBlog

Guide on how to develop a game

  • iconic4213-1246905971037442048

    Iconic

    1 year ago

    I am currently reviewing a game i would like to build using toodle, im quite new to toodle and i would appreciate a guide on how to approach it. its basically a word play game that looks like this.
    1246905972144734208-word_play_game.png
  • andreasmoller-1246909810675290348

    Andreas Møller

    1 year ago

    I built a wordle game a while back I’ll see if I can find it
  • Might take some time
  • iconic4213-1246943888640311366

    Iconic

    1 year ago

    that would be really nice, what backend would you suggest i use for it?
  • andreasmoller-1247037665472286750

    Andreas Møller

    1 year ago

    Literally anything will do, AirTable, Google sheet,
  • iconic4213-1247166639875821630

    Iconic

    1 year ago

    sweet!
  • iconic4213-1247230078971023392

    Iconic

    1 year ago

    so any guide on how to approach it?specifically the word shuffle and collecting input
  • andreasmoller-1247232472731615253

    Andreas Møller

    1 year ago

    The closest thing to a guide is going to be the blackjack game on day 4 of 1st week in toddle
  • andreasmoller-1247232817717444679

    Andreas Møller

    1 year ago

    I deleted the wordle game 😦
  • iconic4213-1253496893833613343

    Iconic

    1 year ago

    Hey @Andreas Møller sad to say but ive been stuck in this for days, i have been trying to find a way to type in words either vertically or horizontally and crossrefrence with a list of words for that particular stage in my game, its been quite hard finding a way out of this problem, i would really appreciate any help i can get
  • Tod-1253496895553273877

    Tod

    1 year ago

    Great energy @Iconic! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
  • andreasmoller-1253586034474877049

    Andreas Møller

    1 year ago

    Can you record a short video explaining what you are trying to do?
  • Is it world with a twist?
  • This is a loom video about it
  • andreasmoller-1253764683974971394

    Andreas Møller

    1 year ago

    Great! I’ll take a look
  • andreasmoller-1254541557667987456

    Andreas Møller

    1 year ago

    Ok So there are twi initial problems as I understand it.

    - How to shuffle the words you get back from the server.
    - How to keep track of what is intered into the input fields

    I hope I understood that correctly.

    I would use two different variables to store the shuffeled letters, and the letter inputs.

    For the shuffeled letters I would just use a normal array. When you have loaded the words from the server you split all the words into letters, then shuffle them in to an array.

    In my case I have called it letter list
  • *I didnt have a word API so for demo I just used the weather 😉
    1254541634134085864-CleanShot_2024-06-23_at_23.00.012x.png
  • Since I dont have a real world API I am just gonna use all the weeknames from the weather API.
    1254541847045476432-CleanShot_2024-06-23_at_23.00.502x.png
  • The rest of the formula should be the same
  • andreasmoller-1254542245840031799

    Andreas Møller

    1 year ago

    Split each word into its letters -> flatten the array so you have a single array of letters -> shuffle the array.
    1254542245604888606-CleanShot_2024-06-23_at_23.02.142x.png
  • andreasmoller-1254542898087854170

    Andreas Møller

    1 year ago

    1254542897924280451-CleanShot_2024-06-23_at_23.05.182x.png
  • For the input boxes I would use a two dimensional array.

    Which just means an array where each item is an other array
  • andreasmoller-1254544736618807347

    Andreas Møller

    1 year ago

    1254544736455364668-CleanShot_2024-06-23_at_23.06.322x.png
  • Then two nested repeats
  • 1254544841820606595-CleanShot_2024-06-23_at_23.13.112x.png
  • For the outer and inner array
  • Then the change event on the input should look something like this
    1254545001002565652-CleanShot_2024-06-23_at_23.13.332x.png
  • Now you can start implementing the game logic one step at a time.
  • I hope that makes sense