Day 2 - Good Vibtraaations and drag movement
Sonic Secret Agent » Devlog
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
Sonic Secret Agent
Status | In development |
Author | misterG-gamedev |
More posts
- Day 7 - Cheat codes speech recognition19 hours ago
- Day 6 - Intro and Improvements to reveal function1 day ago
- Day 5 - Ripple/Fade effect and background texture2 days ago
- Day 4 - Thinking about levels and obstacles and enemies3 days ago
- Day 3 - enemy collision and victory condition8 days ago
- Day 1 - Capturing audio from android and its sound levels10 days ago
Leave a comment
Log in with itch.io to leave a comment.