Skip to content

User-vin/Project-Fancy-Fencing

Repository files navigation

Fancy_Fencing (2)

Fancy Fencing

What is it ?

Fancy Fencing is a game about fencing playable by two people at the same time. You will fight against your opponent, the first one to score 3 points by eliminating your adversary is the winner.

It offers a gameplay adaptable to your wishes, with background music and sound effects to make the game more immersive.

Unfortunately, only playable on windows terminal.

Installation

  • download all the files of the project page, and put them all in the same folder (don't delete the default.ffscene and attribut_value.txt files, you need them)
  • install python 3.9.6 or higher version
  • install all necessary python module

Python module to install

Use the pakage manager pip to install simpleaudio

pip install simpleaudio

cursor

pip install cursor

pynput

pip install pynput

threading

pip install threading

colorama

pip install colorama

The game is now ready

You can start a game using this command in your game folder

python main.py

Load scene

The game will first ask you to enter the name of the scene you want to load (.ffscene). Only then the game will start.

You can create the scene you want with a file file_name.ffscene. You want to add the ground using "_" and the player1 using "1" and player2 "2" and obstacle with "x", all of these with only a single line.

With this: image in your .ffscene file

You obtain this scene:

scene_with_obstacles

Without obstacles: image

attack3

Play scene

In this scene you have:

  • the two players (1st player with green sword, the 2nd a red sword)
  • the score board
  • the key to press to access the menu

image

Each player can move his character

Block attack

gif_block

Score a point

gif_kill

Menu scene

Press the w key to access to menu pause showing the different controls and allowing to quit the game.

image

  • press f and enter a valid name to load a new scene
  • press g and enter a valid name to save the current scene
  • press v to quit the game
  • press b to resume the game

In its current state, the game is quite playable, but you can make it even better by customizing your own settings. Each player can have unique attributes. Changing the values in the attribute_value.txt file changes the speed (frame per second) and the way the game is played.

image

About

M1 VMI S1 ProgAV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages