Skip to content

This is a 2D pixel shooter game created using C# WinForms and MS SQL for the game database.

Notifications You must be signed in to change notification settings

VaderNgo/2D-Pixel-Shooter-Game-In-C-Sharp-Winform-With-SQL-Database

Repository files navigation

2D Pixel Shooter Game In C# Winform With Database

🎮 About Project

project-image

Besides using Winforms to create business or statistical applications, we can also create a game with it. This is a project for entertainment as well as to help me better understand C# Winform.

All assets used in this project do not belong to me but it's free so feel free to use this project even commercially. I would really appreciate it if you credited me 😃 .

🚀 Demo

💻 Built with

Programming Language

Tools

👀 Installation

Step 1: Clone this repo

https://github.com/VaderNgo/2D-Pixel-Shooter-Game-In-C-Sharp-Winform-With-SQL-Database.git

Step 2: Install SQL Server Management Studio(SSMS)

Here is how to install it

NOTE: You need to install this tool or something else to be able to execute the SQL file

Step 3: Excute SQL file to create game database

Excute this SQL File

Step 3.1 (In case the SQLClient error): Add System.Data.SqlClient 4.8.5 Nugget

Open Solution -> Tools -> NuGet Package Managger -> Manage Nuget Packages for Solution -> Find System.Data.SqlClient 4.8.5 and install it.

Step 4: Start Game and Enjoy It

❔How to play

Keyboard

  • Use arrow key to control player.
  • "A" to attack (close range or long range depend on your current weapon).
  • "U" to open Weapon Upgrade Window.
  • "I" to open Inventory Window.
  • "S" to open Shop Window.

Game Mode

  • Easy
  • Medium
  • Hard

Enemy

  • Zombie - Close range attack, no special ability.
  • Wizard Skeleton - Long range attack, can keep its distance to attack the player

Load Play

If you lose but you want to play again that game to finish it. Go to LoadPlay in main menu, connect your database , find your gameplay you want, select it and play again.

License

Distributed under the MIT License. See LICENSE.txt for more information.

About

This is a 2D pixel shooter game created using C# WinForms and MS SQL for the game database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages