kpreid / cubes

Block-based WebGL game engine where the blocks are made out of blocks. Trying not to be yet another Minecraft clone.
https://kpreid.github.io/cubes/cubes.html
64 stars 10 forks source link

Add a way to interact with blocks #8

Open kpreid opened 12 years ago

kpreid commented 12 years ago

There should be a way to interact with an existing block, triggering circuits in it.

In Minecraft, this is done by right-clicking on a block; but this makes it impossible to place a block against the face of an interactive block. Left-click can also be used in the cases where the block is not instantly destroyable.

Using button 3/wheel would not conflict, but would be impossible for many users and probably not very discoverable.

kpreid commented 12 years ago

Currently, the Z and X keys will alter the subdatum of a block (added in 7e2c374ffe6c73d027c6fb043652d842bbb156b7). This is not a reasonable UI, and completely unsuitable for a restricted game mode, but for the moment it is a way to interact with blocks.

kpreid commented 12 years ago

Commit 90abc9cb3b4452be3697b5be3cd53d65f6503f4f allows a block to react to pushing against it, which adds options but is still not the whole story.