Skip to content

A BattleShip game created in a weekend speedcoding challenge using only WinAPI, DirectX 12 and XAudio2

License

Notifications You must be signed in to change notification settings

Ohjurot/ShipBattle

Repository files navigation

[TOC]

Ship Battle

A Ship Battle game created in a weekend speed coding challenge using WinAPI, DirectX 12 and XAudio2

This page is all about the game! If you care about the source code (or even dare just looking at it) please read that document first: https://github.com/Ohjurot/ShipBattle/blob/main/CODE.md

Requirements

  • OS: Windows 10 64-Bit
  • vcredists 2022
  • Disk Space (HDD / SSD): 256 MB
  • CPU: 4-Core
  • Sound Card: XAudio2 compatible
  • GPU: DirectX 12 compatible (Feature level 11.0)
  • CPU Memory: 1GB
  • GPU Memory: 512 MB
  • Display: FullHD recommended (1920 * 1080)

How to play

After stating the game the main screen will be presented

Game_main

Press the ENTER key on your keyboard to start a new game

Now you can place your fleet. Click on the top left of a boat to pick it up. Now you can move it with the cursor and rotate it by pressing the ENTER key. To drop the ship again, click the cell where you want to place it. Please note that the placement of ships is currently a bit buggy... the game may not allow you to place the ship in any location even if it should.

Game_fleet

As soon as you are done placing your fleet click the radar.

Now you can aim on an empty playfield and try to hit the ships of the computer. To place your shot click with the mouse

Game_aim

Now your shot will travel and may hit a ship. In case the computer still has ships alive it will aim at your fleet.

Game_pcplay

In case the computer did not destroy your last ship you can now aim at the computers fleet again.

If the computers or your ships were totally destroyed you get an result screen (Player lost in the screen shoot)

Game_main

By clicking on the radar you can switch between your (green) and the computers (red) fleet.

To finish the game and return to the main screen click on the "you lost" icon.

How to install

  • Download the latest installer from the GitHub release page and run it as administrator (should ask for permission automatically)

Install_Welcome

  • Click next to continue

Install_License

  • Read the License Agreement carefully, check the box in case you accept it
  • click next

Install_Path

  • Select if you want to install the game for all or the current user
  • Choose the path where you want the game to be installed
  • click next

Install_Summary

  • The installer will show you a summary of the installation task
  • click install

Install_Running

  • The installer is now installing all required files
  • please wait

Install_Done

  • As soon as the installer finished you have the option to directly start the game
  • click finish

About

A BattleShip game created in a weekend speedcoding challenge using only WinAPI, DirectX 12 and XAudio2

Topics

Resources

License

Stars

Watchers

Forks

Languages