An open API service indexing awesome lists of open source software.

https://github.com/0mppula/cs-go_weapons

A simple web application, that lets the user shoot either a single shot or multiple shots with a selected weapon from the game 'Counter-Strike: Global Offensive'. Created with vanilla JavaScript, HTML & CSS.
https://github.com/0mppula/cs-go_weapons

audio csgo csgo-weapons css-animations css-effects css3 dom-manipulation html5 javascript

Last synced: 3 months ago
JSON representation

A simple web application, that lets the user shoot either a single shot or multiple shots with a selected weapon from the game 'Counter-Strike: Global Offensive'. Created with vanilla JavaScript, HTML & CSS.

Awesome Lists containing this project

README

          

# CS:GO Weapons

## Introduction

This simple "[web application][1]" allows the user to cycle through a list of weapons from the game Counter-Strike Global Offensive. These particular weapons are objects, which are instantiated when the whole page is loaded with the `window.load` event listener. Users can shoot one or multiple shots with each weapon, additionally each weapon can be reloaded as well. When a new weapon is either selected, shot or reloaded a short audio representation of that will be played.

## Technologies

This web application is coded with vanilla JavaScript, coupled with HTML5 and CSS. The weapons are simply `.png` images, and the audio files are short `.wav` files. My intentions were to implement the functionality of the weapons with JavaScript `classes`, I believe, that I achieved that task relatively well, considering my not so senior coding skills.

## Additional Info

I initially coded this in late 2020, when learning how to manipulate the DOM with JavaScript. The initial version was a hot mess and packed with spaghetti code... 🍝⌨ In spring-summer of 2021, I refactored the code. After refactoring, the source code is much more readable and it is easier to conceptualize what is going on in the project. I believe there is alot to gain from simply skimming through this code, especially for beginners. 🙂

## Bugs

There are currently no bugs in this project. ⛱

[1]: https://csgo-weapons.netlify.app/