GithubHelp home page GithubHelp logo

acidiclight / trafficpanic Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.79 MB

Unity port of a popular LittleBigPlanet level with the same name.

License: MIT License

C# 71.69% ShaderLab 24.11% HLSL 4.19%

trafficpanic's Introduction

Traffic Panic!

"Traffic Panic!" is one of my college final projects for a Unity game development course. It's based off the idea of a LittleBigPlanet level of the same name, which was based off an old mobile game by...you guessed it, the same name.

The game is simple. You're given a birds' eye view of a traffic intersection of two one-way roads. Cars are driving down these roads and it's your job to control t he intersection's traffic light so that nobody crashes. Don't cause a pileup!

Score is given for every car that safely travels north-bound through the intersection. You can only control the light for thenorth-bound road. The game ends as soon as any car crashes, so be careful!

Controls

If you have a keyboard, and you know how to press the Spacebar, then you know the controls. Pressing Space toggles the traffic light between red and green.

Build instructions

  • You'll need Unity Hub, a Unity license (personal is fine), and Unity 2020.3.17f1. I trust that you know how to install that.
  • Clone the repository with Git, or download it as a ZIP and extract it somewhere.
  • Open the project in Unity.
  • If you aren't already in the Bootstrap scene, please open that scene. It's in /Scenes/Bootstrap.
  • You can play the game in-editor, or you can choose to build it as standalone. I haven't set up build indexes yet though.

I want to play a standalone build

First of all, why. There are so many better games, even written by me, that you could be trying to compile yourself. I don't plan to actually release this so it's really not set up to be properly built.

WITH THAT IN MIND, I can't control what you do - but I can tell you how to do it yourself.

  • Make sure that you set up build indexes for both the Bootstrap and TheIntersection scenes. Bootstrap MUST be Index 0, likewise, TheIntersection MUST be Index 1. See SceneNames.cs for why.
  • You may run into compile errors because of editor-only code being used. If you do, then I apologize, I haven't gone through and stripped anything I may have added by accident using code-completion.

Missing stuff/future plans

  1. Art - I originally agreed to have DeRose, the lead modeller of Restitched, help out with car models and other art assets that I can't do on my own. But we Restitched folk are really busy with...Restitched, and so I didn't want to bog the team down on one of my personal projects. That being said, maybe I may come back in the future and art-pass this game. For now though, it's all just a bunch of cubes and default Unity UI.
  2. Leaderboards - There's a high-score feature in the game, but it gets wiped when you close the game. Eventually I'd like to set up a local leaderboard system, similar to old arcade games.
  3. Pedestrian Carnage! - I wanted to add a feature where pedestrians would cross the street occasionally. Hitting them would cause a negative point penalty.
  4. Police - In the LBP level this is based off of, cars would occasionally stop in mid-traffic. A police car would then spawn in to chase the rogue car away. But this is too complex of a system for me to write for a college project, so that's missing.
  5. Multiple levels - There's only one level in the game, but it wouldn't be too hard to build out new levels in the future. Maybe even ones with multiple intersections?
  6. Different vehicles - There's a car pool system in the game - for randomly spawning different vehicles with different attributes. But there's only one "cubic-mobile" car in the game. Eventually I'd like to add new vehicle types.

Is this affiliated with Trixel Creative?

ABSOLUTELY not. Like I said above, this is a college project. That being said, the LBP level that this game is based off of, was made by Trixel. And I am a Restitched project lead. So you're close...but...not quite! :)

trafficpanic's People

Contributors

acidiclight avatar

Watchers

 avatar

trafficpanic's Issues

Add/Replace Models

Add (or replace) the following models to make the game look like a game and not like a blind guy placed a bunch of white cubes everywhere in a way that VAGUELY suggests it's a game.

Cars

  • Smart Car
  • Family Sedan
  • Creepy Van
  • Pickup Truck
  • Big Rig (18 wheeler, transport truck, tractor trailer, whatever you wanna call it)
  • Schoolbus
  • Police Car

Environment

  • Roads
  • Sidewalks
  • Street Lights
  • Traffic Lights
  • Buildings

Extra Decoration (only if all others are completed and there's still time)

  • Trees
  • Sidewalk Benches
  • Phone Booths
  • Speed Signs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.