Day 2 - Good Vibtraaations and drag movement


Day 2 - new ideas and progress

So I thought about some more practical questions and added this to the overall scope/game idea:

  • You are playing a secret agent who is deployed in an enemy complex to retrieve documents
  • You only have thermal vision so you only see enemies but no walls or obstacles
  • You need to navigate through the complex and avoid enemies; enemies patrol but walk towards you if you are too noisy or bump into wall
  • Only way to visualize the obstacles is to use your sound to reveal the map
  • Optional: You might need to deploy a sound decoy to lure enemies away and get to the secret documents 
  • Optional: You might need to use your phone flashlight to copy the documents but increase risk of getting spotted

Implementing basic drag movement

Looking back at earlier projects from 2+ years ago, I found a good starting base for an easy drag and drop movement. The idea is that you drag the player across the screen to move while not bumping into obstacles. If you bump into walls/obstacles, you make a vibration and attract enemies (eventually I mean).

Android Vibration

Can't believe how easy it is to trigger Android vibrations:

#if UNITY_ANDROID
            Handheld.Vibrate(); // Trigger a single short vibration
#endif
            lastVibrationTime = Time.time; // Reset cooldown timer
        }

That is all that is needed to trigger a vibration when for example colliding with an object

Get Sonic Secret Agent

Leave a comment

Log in with itch.io to leave a comment.