Giter VIP home page Giter VIP logo

shipbattle's Introduction

[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

shipbattle's People

Contributors

ohjurot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

spaceexpanse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.