Page 2 of 2
Re: Onitama
Posted: Wed Jul 27, 2022 6:54 pm
by richmond62
Here's a functional implementation:
https://onitama.app/#/
Although it will win no prizes for look and feel:
-
-
The Android version is lovely, and, in terms of functionality what I particularly like
is that on selecting a card and a piece the possible moves that that piece can make are indicated:
-
Re: Onitama
Posted: Thu Jul 28, 2022 10:34 am
by richmond62
-
Got to the stage where, on clicking a move card its custom properties are put into fields, as
well as the angle of the card.
'dots' (images x1 thru x25) are present above each position on the board (set to invisible)
ready to signal possible moves.
Hilighting via showBorder, borderColor and so on has been implemented for both the move
cards and the pieces.
Re: Onitama
Posted: Thu Aug 04, 2022 12:14 pm
by richmond62
I had a 'dark night of the soul' 2 days ago and the one pupil who has not run off screaming to the seaside (well, just opted for side scrollers as their projects) got in fight with her father (who is now trying to compete with his daughter and me to finish this thing) over how to do things . . .
. . . so more coming in about 5-6 hours, promise, honest.

Re: Onitama
Posted: Thu Aug 04, 2022 1:59 pm
by richmond62
So, I renamed the squares of the gameboard like this:
-
-
and I renamed the 'blobs' similarly: x,1,1 x,1,2 . . . x,5,5
This will make setting possible move locations easier.
Re: Onitama
Posted: Thu Aug 04, 2022 5:38 pm
by richmond62
OK, OK: now, if one clicks on a piece the possible moves are marked (although why
2 clicks should be necessary is something I have not tracked down yet):
-
-
There is still a long, long way to go.
I obviously have a version control problem as the stack I uploaded yesterday was an earlier recension.
I apologise for that.
Here is the one I mentioned in this posting.
Re: Onitama
Posted: Fri Aug 05, 2022 9:52 am
by richmond62
-
Fixed several troublesome points:
1. Red pieces will only register moves for the 2 cards at the bottom of the window.
2. Blue pieces will only register moves for the 2 cards at the top of the window.
3. Position blobs will always show ABOVE pieces.
Re: Onitama
Posted: Fri Aug 05, 2022 9:58 am
by richmond62
Next on the to-do list:
1. Set things up so when an end-user clicks on a move card it will mark possible moves on the board
for a selected piece.
-
Re: Onitama
Posted: Fri Aug 05, 2022 12:49 pm
by richmond62
That has been implemented.
Re: Onitama
Posted: Tue Aug 09, 2022 4:28 pm
by richmond62
-
Ach, well, ma nephew stapt by, an there's naethin tae exerceese the harns
like some byous roonds o a game, forbye.
Aiblins, eftir that, Ah mucht get ma harns in gear fae further wark.
