Blackshift's mechanics system is what I call the code that handles pushing blocks, deciding what is pushed by what, what gets to move, what doesn't, and what is crushed. It's not a full physics simulation, it's much simpler and more abstract, which ironically makes it more difficult to code. Why? Because fake, abstract physics is specific to your game, whereas more realistic physics can be achieved using off-the-shelf libraries with little or no modification. Neither is better, but each suits a different type of game. Of course, you're free to use the wrong sort of physics for your game on purpose...
|Not Tetris 2, Stabyourself.net|
Blackshift's mechanics are, in a nutshell:
- The player, enemies, arrow blocks, and anything on a force floor generates a force.
- Forces propagate through blocks.
- Clusters of sticky blocks always move together.
- Once all the forces are propagated, anything that can move does.
- Anything that can move in more than one direction moves in the direction of the strongest force.
There are some other rules as well, to deal with annoying questions like "What happens if a cluster of sticky blocks has two different force floors under it?" and "Can arrow blocks push each other?"
In the end, I'm happy with how the mechanics work and I think we'll be able to get a lot of puzzle mileage out of them, especially when combined with the four sorts of blocks:
- Normal block; can be pushed and can push other blocks along in long columns.
- Heavy block; can only be pushed by the player, not by other blocks.
- Arrow block; pushes itself in one of four directions.
- Sticky block; always moves together with adjoining sticky blocks.
That should be enough for now, but if I think of any awesome new blocks (that won't mess the code up) I won't hesitate to add them. Any ideas?
(I'll post a video of the new mechanics in action once I'm free of all these embarrassing placeholder graphics.)
Ideas? Well, let's see:ReplyDelete
-extra-light blocks that can be moved by shooting at them
-blocks with chassis which only can be moved when turned on
-explosive or fragile blocks (OK, that might be just an additional feature)
-railway-blocks only pushable in certain paths/directions
-'ice' blocks which slide until they hit a wall
-blocks with handle that can be pulled as well
-magnetic blocks attracting/repelling each other when close enough
-combinations of the above (or rather not)
Not saying that any of this would be necessary or even a good idea, I just listed everything that came to mind.
Nice example for game with wrong sort of physics btw ^^
Thanks for the input! Some good ideas there; I'm really not too fussed about adding too much stuff to Blackshift. I'll just make sure I don't foist it all on the player at once.Delete
Actually I already have explosive blocks; I forgot to mention them in the post. Magnets are a neat idea.
If you really need to add more blocks, I dunno. If you make the game too complicated, it will diminish the attraction to an already brilliant game. Magnets are interesting. However, they would have to be activated and deactivated.Delete
1.jump block：blocks that has a number on it which shows how far it jumps if the destination has enough space(think about sticky jump blocks, they need more than 1 space)ReplyDelete
2.friend block: only if there is another friend block nearby, it can be moved
3.rotator: several sticky blocks which has an axis on one of the blocks, can be rotated if the goal has enough space.
I have more ideas but they on my personal computer, I'll check type it.
Thanks! By the way, are there any other Chinese characters that make sense on their own which would work well on floor tiles? Things like 'safety', 'danger', 'this way', 'enemies' etc?Delete
Yes, there are(the complicate one is traditional Chinese character):ReplyDelete
'light'：轻,輕（Antonym of heavy）；
Actually, a Chinese character usually have several meanings, so in daily use(modern use), we use word which made of two Chinese characters more. Take 'safety' for example, we use "安全",but our ancestor(hundreds of years ago) use "安" in Classical Chinese.
Many people in China mainland can't write traditional Chinese characters,but most of them can recognize most of traditional characters.
Dude I just noticed your post – this is great stuff, thanks a lot!Delete