Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.97 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.97 KB

Pacman Game in C++

Note: This Game uses SFML (C++) and SQLite3 Amalgamation Code (C).

Introduction:

Note: This Project uses code from SFML and SQLite3. You can view there codes in SFML and SQLite3. All rights, go to their respective owners and if you see their code files along with my code files, then before using them, check their policy. I will bear no responsibility for your negligence.

Project Versions:

There are two folders present here, which are "First Version" and "Second Version". Since, this project is also for OOP and ISE Project Evaluation and i couldn't complete the full version in time, i created the "First Version". But, the "Second Version" is the complete version. Check their respective README Files for more information. This doesn't mean that the first version doesn't work. It just means that the first version doesn't have all features.

Compilation Instructions:

You can use the Makefile given below for compilation of code. Make sure to change the SFML_INCLUDE and SFML_LIB variables according to the path where you have installed SFML. To compile the code, run the make all command in the terminal. This will compile the code and create an executable file named "main". To remove the object files, run make clean command.

SFML_INCLUDE = "C:\SFML-2.5.1_(VS_Code)\include" // or add your own path
SFML_LIB = "C:\SFML-2.5.1_(VS_Code)\lib" // or add your own path

all: compile_link

compile_link: compile_main compile_sqlite link

compile_main:
	g++ -c main.cpp -I$(SFML_INCLUDE)

compile_sqlite:
	gcc -c sqlite3.c

link:
	g++ main.o sqlite3.o -o main -L$(SFML_LIB) -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio

clean:
	rm -f main.*o sqlite3.o

Contribution:

This Project would have never been possible without the help of Zayed A, April, 2023. Thank you for your help.