How to play:

Press(not hold it) WASD to move the car, and quickly press Q and E to turn the headlights back on.

If you stay out of the yellow line or the headlights are bad for too long, you will be caught by the police.

Press L to restart

Lecture details:

I used custom arcade fonts found at DaFont.

There are a total of 5 dynamic text objects in-game. The speed object stays 65mph in green and if the speeding event triggers, it will change to red and indicate if it’s speeding or slowing. The headlights object will change to “bad” and turn red if the event triggers. The steering object will indicate the direction, if it’s normal it will be “||”, if it’s drifting to left or right, it will be “<=” or “=>”. 

The win timer indicates how far from winning the game. The police's suspicious level indicates how long the player has been in a suspicious state.

I used a lot of while loops and 1 list. This game is mostly likely built upon a group of while loops, all the events are stored in a list, and the group coroutine will execute them at the start of the game, it will randomly trigger one of the events every 5 seconds(3 seconds in late game). Each event is a while loop in an IEnumerator.

Design details:

Iteration: The game difficulty has been changed several rounds based on my personal playtest. I the event's triggering time was 7 seconds instead of 5, but it didn’t meet my expectation of making the player press the keyboard non-stop. The police’s suspicious time was 5 seconds and I increased it to 7 seconds because during the playtest I found that it would be super difficult if several events were triggering simultaneously.

Freshness: I wasn’t a big fan of list, but in this game, I made a huge system based on the list and while loops. Also, I made 2 things that are permanently stored in the game, background music that will play no matter which scene the player is on, and a violation time of the player that will be displayed at the end. I also implemented most of the main functions into one script which I don’t usually do, but I found it more efficient especially when there is only one game object to be controlled. Using code to adjust the text is also interesting.

Github

video

Submission form

Published 2 days ago
StatusReleased
PlatformsHTML5
AuthorNozdorm
Made withUnity

Comments

Log in with itch.io to leave a comment.

so chill

It meant to be chill=-=