четверг, 28 марта 2024 г.

Creating an online multiplayer game with Thunkable in 30 minutes).

 So, let's try to create a 2-player game called "Rock, Paper, Scissors, Well" - a popular finger game often used as a way to determine the order of play or the leader in other games.

The winner is determined by the following rules:
    Paper beats rock and well (paper covers rock and well).
    Scissors beat paper (scissors cut paper).
    Rock beats scissors (scissors break on rock).
    Well beats scissors and rock (scissors and rock sink in the well).

If players show the same sign, it is considered a draw and the game will be replayed.

Let's start with Google Sheets. Create a spreadsheet...


 

  ... and connect it as a data source.

 

Create two groups (they should be invisible when application starts).

In each group, add components: 

- start group:

 
- game group:
 

Application screen view:

 
Reset button - clears the previous game results (in case of any remaining locks in the spreadsheet). Buttons with icons allow you to choose your figure.
Check button checks the players' results.
Restart - restarts the game and clears the results.

 You can see all the game logic in the following screenshots







And so, questions for Thunkable:
 - when will the variables be in all objects? Why duplicate/triple the code?
 - when new components appear / when all components are imported into the drag 'n' drop version.
 - where is UNDO in block mode (get inspired by Thunkable - you can do UNDO anywhere,  without fear that every clumsy move will delete a piece of code that you've been writing for several days).
 - export APK twice a month - WT.. well, at least do it twice for EVERY project. And i'm not  mention about the impossibility of creating a build for IOS or a web app in the free mode (and without creating an Apple account).
 Allow at least a web app, please :)

 

Комментариев нет:

Отправить комментарий

Популярные сообщения