Mouse Support (with Snap)

Discussion about Rocks'n'Diamonds, Boulder Dash, Supaplex, Emerald Mine and any other BD hybrid.

Moderators: Flumminator, Zomis

HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Mouse Support (with Snap)

Post by HerzAusGold »

Hi
I upload a new version of rndTest, here:

http://www.zomis.net/rnd/download.php?id=477

See also, topic "Transparent zip support with zomis file archive"
here: viewtopic.php?t=739

You can now move the player with the mouse.
Mode 13 or 19 - Press right mouse and move it.
Play snake_bite with it or a normal level.

> rndTest -sokomode=13

Of course you can play sokoban with it (as already mentioned)

> rndTest -sokomode=3

And you can move it without holding the mouse button.
Mode 23 or 29 - press 'b' to toggle follow_mouse mode.
Then move the mouse.
Snap right with right mouse and left with left mouse.
Middle mouse button toggle to up,down.

> rndTest -sokomode=29

You can also try the other sokomode's but there are small bugs
causing the player dont run anymore.
Described in 'hag_readme.txt' (all modes and other switches)

Holger have already a look on follow mouse mode (13,19).
He means "..a new feeling..".
Hope he answer soon to my last email (Please, may be a short one, Please, I cant sleep)

For Holger: to do a SNAP, there is a new problem:
When is a SNAP finished? (MovPos == 0 dont help!)
(btw: all strcasecmp are now removed!)

Please try it and post your ideas, suggestions or bugs here.
And the answer is ... 42 !
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> He means "..a new feeling..".

Yes! Playing with "rndTest" is really a whole new experience! :-o :-)

I can only recommend trying it! You will be positively surprised (at least that's what happened to me)!

It's surprisingly well playable that way! I think I will add this to the "official" R'n'D sooner or later, as I really like playing that way -- indeed a whole new feeling to play the game that way! :-)

Cool work!!
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

rndTest14

Post by HerzAusGold »

Hi,
I uploaded a new Version of "rndTest", here (rndTest14.zip):
http://www.zomis.net/rnd/download.php?id=421

Now new more stable modes are added.

For Follow Mouse with Snap
> rndTest -sokomode=28

For Follow Mouse with hold right mouse button
> rndTest -sokomode=18

And for simple sokomode:
> rndTest -sokomode=8

All these modes are now RECORDED !

Unfortunatly there are now small bugs in "sokomode=8", but you can use:

> rndTest -sokomode=1
> rndTest -sokomode=2
> rndTest -sokomode=3

As little sideeffect:
In "sokomode=28" you can run and snap.
If your mouse is closer to the player you snap more "fields".
If the mouse is a away from player there are only some snaps.

Have Fun!! 8)
What mode is better fitting for you?

Btw: This method is like recording, and can control all four players.
HeHe Just an idea.... :D ...demos...opponents...

Hope Holger can take a look on the changes, and can help with the last small bugs.
And the answer is ... 42 !
User avatar
Francesco
Posts: 577
Joined: Thu Dec 29, 2005 2:22 pm
Location: Sardinia (Italy)
Contact:

Post by Francesco »

Just tried it.

With sokomode 3, it moves only if the destination point is no more than 8 fields away from the starting point: is it intended?

With sokomode 28: it would be nice if you could also switch the elements (just tried Master-Rocks II, and it seems not possible to be played using only the mouse - of course it wasn't intended to work, it's an add-on request ;)

...more testing report to come...
Anyway, by the way, have fun!
Francesco
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

With sokomode 3, it moves only if the destination point is no more than 8 fields away from the starting point: is it intended?
There are two possibilities:
Clicking with left mouse to a empty space move the player to that place.
If there is a way (only empty spaces are checked)
Here you can run through the whole playfield or maze.

Clicking with the right mouse button you can run through all diggable and
collectable things. But the algo is recursive and takes a lot of the stack for all this checks. (up to now)
So it is only possible to move a way you see on the screen.
With sokomode 28: it would be nice if you could also switch the elements (just tried Master-Rocks II, and it seems not possible to be played using only the mouse - of course it wasn't intended to work, it's an add-on request
Checking CE's is actually to difficult for me (even Holger say this is tricky).
And the answer is ... 42 !
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Playing only with the mouse!

Post by HerzAusGold »

Hi, - Now I get it under keep control, let's dance the time warp ...

I uploaded a new Version of "rndTest", here (rndTest15.zip):
http://www.zomis.net/rnd/download.php?id=421

Now new REALLY stable modes are added.

For Follow Mouse with Snap
> rndTest -sokomode=27

For Follow Mouse with hold right mouse button
> rndTest -sokomode=17

And for simple sokomode:
> rndTest -sokomode=7

All these modes are now RECORDED and STABLE !! :P

NEW MODE:
And a completly new mode, the player follow (silly) the mouse (without calculating the shortest way).

With this mode you can now play e.g. "snake_bite" ONLY WITH the mouse! :P 8)
Of Course this is although recorded! And works with all CEs too!

> rndTest -sokomode=26

Of course you can try other level series too.

When RnD V3.2.0 is released, I make a "rndTest" version with the stable modes, and remove the obsolete and buggy modes.

TEST LEVEL:
I have added new levels to my series. With a test level (=4) for the follow mouse mode.
Try this with the joystick than with the mouse. :shock: (Toggle to Snap Up/Down).

Have fun! Try it!
And the answer is ... 42 !
User avatar
Francesco
Posts: 577
Joined: Thu Dec 29, 2005 2:22 pm
Location: Sardinia (Italy)
Contact:

Post by Francesco »

HerzAusGold wrote:NEW MODE:
And a completly new mode, the player follow (silly) the mouse (without calculating the shortest way).

With this mode you can now play e.g. "snake_bite" ONLY WITH the mouse! :P 8)
Of Course this is although recorded! And works with all CEs too!
Seems like you have implemented my request, in some way... I'm going to check this new release... you are competing with antivirus software, as for the frequency of the updates... ;)
Anyway, by the way, have fun!
Francesco
User avatar
Francesco
Posts: 577
Joined: Thu Dec 29, 2005 2:22 pm
Location: Sardinia (Italy)
Contact:

Post by Francesco »

Sokomode 26 is my best choice, you can also switch elements and play MasterRocks! You won't believe it, but it also works on Rockfighter's levels! Well, kind of... some combos work :shock:
Okay, okay, is unsane to try playing RF with the mouse, but RF is pretty unsane by itself...
Thanks a lot for sokomode 26, HerzAusGold, it's the most effective for me - I bet it's also the simplest implementation...
Why don't you add a mode where you can click on an element and Rockford goes there to press it... it doesn't seem so diffucult to manage all elements, seen sokomode 26... or is it already possible with some other mode? (I didn't try them all completely)
Anyway, by the way, have fun!
Francesco
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Thanks for your response.
Why don't you add a mode where you can click on an element and Rockford goes there to press it... it doesn't seem so diffucult to manage all elements, seen sokomode 26...
Hm, yes this is possible. Watch out for the next version, and download them before a antivirus prog kill them.
or is it already possible with some other mode? (I didn't try them all completely)
It is only possible with mode 26, because here I only move the player to the mouse position. If there is a barrier (like a CE, a wall or a stone) the player want to run to this position, give up after 20 frames, so the player push, touch the element.

The modes 7,17,27 and 26 should be fully compatible with normal playing.
Except of gravity.

btw: I have really some ideas (good and bad) what is all possible now.. [/quote]
And the answer is ... 42 !
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Just look "rndTest17" is out.
And try modes 5,15,25.
it's a little bit like Francesco suggested.
But more like mode 26.

Hm, but Franscesco idea is possible too.
(Like in sokoban like pushing the lamp. - this is for my brain)
Never though about it.
And the answer is ... 42 !
User avatar
Francesco
Posts: 577
Joined: Thu Dec 29, 2005 2:22 pm
Location: Sardinia (Italy)
Contact:

Post by Francesco »

Yet another release, cool... too bad I'm at work... mmm... but we have -gameatwork mode... mmm... :D
Anyway, by the way, have fun!
Francesco
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

rndTest Version 2.0

Post by HerzAusGold »

Hi,
I uploaded Version 2.0 of "rndTest", here (rndTest20.zip):
http://www.zomis.net/rnd/download.php?id=421

ONLY stable modes are included.
Sorry, but I change some mode numbers. Code is cleaned up.
The modes should be 100% compatible with RND !! - or vice versa :wink:
All errors you get now are may be in RND too.
- Ok, some little things may be comes from rndTest -

For Direct Follow Mouse with Snap (was 26):
> rndTest -sokomode=31

For Follow Mouse with Snap
> rndTest -sokomode=21

For Follow Mouse with hold right mouse button
> rndTest -sokomode=11

And for simple sokomode:
> rndTest -sokomode=1

All these modes are now RECORDED and STABLE!

And for a other direct modes:
> rndTest -sokomode=5
> rndTest -sokomode=15
> rndTest -sokomode=25

See HAG_README.TXT for details.

-- Hi, Holger I come closer to version number 3.1.2.
-- If you like put a message in the announce section.

BTW: Warp to next level is possible to - See my second level!
And the answer is ... 42 !
User avatar
Darkon
Posts: 237
Joined: Sun Jun 20, 2004 9:19 pm
Location: UK

Post by Darkon »

Really nice work! Actually the first time ive tried it and it works nicely, however would it be possible for a new mode? right click to snap in a direction (wherever the cursor is), left click to move? objects could be set so right clicking on the player drops an item (such as dynamite).
(could be classed as boulderdash/emeraldmines/supaplex mode or a better name since the one I just said would be silly :-p)

Im really impressed with the way you can push sokoban objects.
Great work, keep it up!
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Thanks. But I have some questions.
right click to snap in a direction (wherever the cursor is),
In which direction should be snaped? Where the cursor is?
left click to move?
Move to cursor location? With or without calc of shortest way?
objects could be set so right clicking on the player drops an item (such as dynamite).
Ahh. :idea: This is a very good idea. I always search for a button to drop - but now I dont need them.

Btw: With the mouse mode you can run right and snap down at the same time - this is impossible with normal RND (but recorded tough).
Toggle snap direction with middle mouse button.
And the answer is ... 42 !
User avatar
Darkon
Posts: 237
Joined: Sun Jun 20, 2004 9:19 pm
Location: UK

Post by Darkon »

Yep, right clicking would snap in the direction the cursor is, so if you had the cursor below the player, it would snap down, having the cursor above the player would snap up, left of player would be snap left, and im pretty sure you can guess how to snap right ;-).
You could make so once you left clicked to start moving, you could right click above where the player is to start snapping up as you move.

About calculated movement distance, maybe that should be made a separate option? its really nice for it to calculate the best route to take, but in some cases this can be a little risky and would require more persision for example, you want the player to go right then down along a bend, but directally below the player is a butterfly in a small area, the game would calculate that the shortest distance would be directally through the area with the butterfly which would turn out pretty nasty...
Post Reply