Why should I play Subway Surfers using mouse ? isn't keyboard cool !

Let's assume that someone forced to work under some circumstances, where no internet access will be available to him (not forever but just for a duration like one week), he will probably click Ctrl+F, write subway, Great, he found a game where he can burn his time.

Let's play for 30 min - 1 hour, probably that person will not be able to reach more high score, his hand will hurt.

I want to make the life of this person easier and better by adding keyboard support to that game (the game is for childs or not that is another story, and not important for me).

I want this feature to become built-in, so the end don't want to do anything other than double click the exe.

Great, It looks like that I'm lucky, UnityEngine is used along with Mono, which is a .NET framework-compatible.

Found something interesting in Assembly-CSharp.dll, Game.HandleControls method, we must add arrow keys support there.


So I modified the IL to get something like that


Great, but unfortunately after running the game, the left and right arrows misbehaved, It behaves as if we clicked the arrow many times, we must figure that out.

Ah, there is another method called Input.GetKeyDown(KeyCode) let's try it instead.


Which corresponds to the ILCode:

Well done.


Comments

  1. In the very first motion of this playing you need to attempt and push the preliminary cherry along with the Hazelnut that stuck with a column to the centre line using a gap. This specific move can help you to take them down smoothly to the floor. Now transfer the Hazelnut onto the transporter. This time do not create a further move till you are able to find the path to push down it. Candy Crush

    ReplyDelete

Post a Comment

Popular posts from this blog

CTF.ma - Interesting CTF Challenges

010 Editor v7.0.2 (x64) Crack

Playing with VMProtect - Sample devirtualizeme32_vmp_3.0.9_v2