Real time Reversi by thesnide
This is a real-time ~~chess~~ Reversi.
The chess part proved too difficult to do in the allocated timeframe (less than 6h as I didn't plan to take part in it at first. But once the game design found, then the need was just too big 😜 ).
Rules
- You can click whenever you want, and a random color is choosen.
- Only the verticals & horizontals are swapped
- Both players can click at the same time, it's real time.
The real game mechanic should choose "cleverly" between the white or black that changes the most chips, but I didn't have time to implement it.
Game Engine
I'm using PixiJS, which is great! (I just learned it while doing the compo)
Source Code
It's a very simple HTML5, so just go there and view the source in your browser. The main code is in the JS : http://snide.free.fr/ld/ld41/rtc.js
Future
I might upload an updated version of it, with "working" color selection.
| HTML5 (web) | http://snide.free.fr/ld/ld41/ |
| Original URL | https://ldjam.com/events/ludum-dare/41/real-time-chess |
Ratings
| Overall | 708th | 2.048⭐ | 23🧑⚖️ |
| Fun | 707th | 1.675⭐ | 22🧑⚖️ |
| Innovation | 698th | 2.143⭐ | 23🧑⚖️ |
| Theme | 687th | 2.375⭐ | 22🧑⚖️ |
| Graphics | 686th | 1.775⭐ | 22🧑⚖️ |
| Mood | 647th | 1.553⭐ | 21🧑⚖️ |
| Given | 9🗳️ | 5🗨️ |
let whiteTurn = false;
And in your function OnDown(eventData) you say
if (whiteTurn) {
whiteTurn = false;
let texture = player_textures[ 1 ];
}
else {
whiteTurn = true;
let texture = player_textures[ 0 ];
}
And then you do the SetTexture and SetPlayer like before.