https://github.com/sleepymalc/parkinglot
🚗 Start Parking! Watch Out! ⚠️
https://github.com/sleepymalc/parkinglot
cpp object-oriented-programming opengl
Last synced: 4 months ago
JSON representation
🚗 Start Parking! Watch Out! ⚠️
- Host: GitHub
- URL: https://github.com/sleepymalc/parkinglot
- Owner: sleepymalc
- Archived: true
- Created: 2021-03-29T10:23:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T09:06:46.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T03:16:06.350Z (4 months ago)
- Topics: cpp, object-oriented-programming, opengl
- Language: C++
- Homepage:
- Size: 346 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parking Lot
🚗 Start Parking! Watch Out! ⚠️## Abstract
Instead of making a boring animation, we make it into a game features with
1. Lovely drawings of UFOs and rockets, etc.
2. Teleport can transform into polygons with a different number of sides and change color during the transformation.
3. To make it more fun, we make it an interactive game, see the [game rules](#rules) below.## Launch
To compile, you simply run `make` and get the executable named `parkinglot`. Now, you just simply run `./parkinglot` and you can start playing!
## Rules
The player will control a rocket, which appears in a random teleport at the beginning, and your goal is to destroy all the vehicles before they all have parking. In detail,
1. Your initial position is at a random teleport.
2. If more than three vehicles are parked successfully, you lose.
3. If your rocket bumps into another vehicle, it will collapse, and you lose.
4. You can only leave less than three vehicles parked successfully, or you lose.## Control
- Move: `w` (up), `a` (turn left), `s` (down), `d` (turn right).
- Shoot: `space` (to shoot a laser with delay)## Else
We also include the [source code](./ParkingLotManager.cpp) of the first part of the project.
For the game (second part) itself, something is worth noting since we did not strictly follow the project instruction:
1. Our Rocket doesn't zoom in and out, instead, we zoom in and out of the flames to make it more real.
2. Our car is replaced with a cute cart, and the flag is replaced with a windmill.## About Honor Code
According to the SJTU student handbook (2019 version),
> It is a violation of the Honor Code for students to submit, as their own, work that is not the result of their own labor and thoughts. This applies, in particular, to ideas, expressions or work obtained from other students as well as from books, the internet, and other sources. The failure to properly credit ideas, expressions or work from others is considered plagiarism.
## Contribution
Yuyang Chen, Pingbang Hu---
The works are partially contributed by some other students, TAs, and professors, which would be listed if known.
> If you find any problems in the repository, welcome to make an issue or pull request.