Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

QUBE - designing picking inside a cube?

A topic by tintwotin created 97 days ago Views: 210 Replies: 8
Viewing posts 1 to 6
(3 edits)

Doing a connect-4 game in 3D by just using html5 and threejs, however selection of positions inside the cube is not directly possible. The picker will always select the outside positions, so I designed rows with toggle positions. How does this work? Can it be improved? https://tintwotin.itch.io/think-hard-connect-four-in-3d

Some of my ideas is to make the row change direction depending on the picked box (might be difficult). And also, add a Next Turn button as an alternative to finish the turn with the Enter-key.

Another topic is how good the computer is to read user strategies. It seems like you can always trick it by doing Connetct-4 in two crossing directions. How to improve the computers abilities to play the game?

Update: https://tintwotin.itch.io/think-hard-connect-four-in-3d/devlog/991726/qube-updat...

Updated:

(+1)

Hey tintwotin,

don't know how to rotate and find it hard it bit hard to see, where exaclty the blocks are placed now... don't know maybe there is a better to illustrate the block position... maybe "full blocks" just a bit transparent. 

Thanks for the reply. You just drag outside the cube, and it'll rotate in the direction you drag.  Are you on a computer or a touch device?

Often you want to look in one direction to select a row, and then rotate to the side to toggle to the right position inside the row.

Hey tinwotin,

yeah now I was able to rotate the cube... maybe i was zoomed in to much the first time... so I didn't had any background to grap ... for me I think it would be better if the cube is always centered at the bottom and can't get lost in space - furthermore ... if rotation would be done with up and arrow keys and the toggle for convience with the right mouse button and placement with space... just the way i feel about it,

Where is the cube placed when you start the game? Can you make a screenshot? And tell me what is your resolution and operating system?

Arrow keys for rotation properly could be included, but it wouldn't work as freely as rotating with the mouse or with fingers on a touch device. 

Right mouse is typically cancel, and should work like this currently. 

How do you find the difficulty levels(too hard?) and the tournament mode?

The cube is placed ok at the start ... and it feels good to be able to use space to toggle, what is a bit annoying is that you can rotate the cube in various positions if the cube would always be centered it would be better for me. So far I've played tournament and always just one level which was easy... today while I was running I was going through variations in my head though... since i had the feeling there might "exist an always draw" when you start... I started to think about an "winning condition" first... which would be in one plane 11 12 21 22 filled when the rest of the fields are empty you can force a win from here... then i thought how to go about it... starting from one of the center fields of for example the diagonal from top right to bottom left... and how fast you can force the ai to play defense... didn't thought it completely through... but thought there is a good chance "that you can always force (at least) a draw"... the easy computer of course let me build after taking a few center fields directly the win condition of the center of a plane... (so not sure of a difficulty)... Think with a "touch screen the whole game will play much nicer"