🚀Assignment for Advanced Programming Course (2020) a game program that uses the SFML (Simple and Fast Multimedia Library) for graphics and audio. For more details, refer to the report.
- #include <SFML/Graphics.hpp>: Untuk grafis.
- #include <SFML/Window.hpp>: kanvas/jendela permainan.
- #include <SFML/Audio.hpp>: Untuk audio.
- #include <iostream>: Untuk input/output standar.
- #include <Windows.h>: Untuk fungsi Windows.
- #include <vector>: Untuk penggunaan vektor.
- #include <math.h>: Untuk fungsi matematika.- Menu and Tutorial: Displays the main menu, tutorial, and score with background music and images.
- Game Window: Provides graphic displays for the game, including tanks, missiles, and airdrops.
- Audio: Plays sound effects for shooting, collisions, and background music.
- Game Controls: Manages the movement of tanks, bullets, and collision logic to determine the score.
- bKiri, bKanan: Left and right boundaries for object positions.
- rSpeed, airspeed: Missile speed and airspeed.
- scoreTank1, scoreTank2, scoreHitler: Initial scores for two players and the target.
- screenx, screeny: Screen size.
- tank1x, tank1y, tank2x, tank2y: Initial positions of the tanks.
