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

https://github.com/vadimdez/counter-strike-js

Counter Strike implementation with Javascript/Typescript
https://github.com/vadimdez/counter-strike-js

counter-strike half-life textures typescript

Last synced: 6 months ago
JSON representation

Counter Strike implementation with Javascript/Typescript

Awesome Lists containing this project

README

          

# Counter-Strike JS

Counter-Strike 1.6 implementation in TypeScript utilizing state of the art browser APIs.

> _Used https://github.com/MathiasVP/CS as the base._

### Demo

> No hosted demo, run locally

### Current state

- Parses and renders .bsp files (version 30) containing map data
- Parses and renders .mdl files (version 10) with textures
- Camera movement, yaw and pitch fully implemented
- Collision detection implemented
- Naive gravity implemented

### Develop

**_Please note: No actual data (maps, models, textures, etc.) is included in the project, due to copyright reasons!_**

- Copy `cstrike` folder from your `Counter-Strike 1.6` folder into root folder of this project

- Install dependencies

```
npm install
```

- Then start webpack

```
npm start
```

- Open [http://localhost:9000](http://localhost:9000)

![Menu](https://user-images.githubusercontent.com/3748453/78078377-5a9b8e80-73aa-11ea-8a1c-b23307d4c235.png)
![Screenshot](https://user-images.githubusercontent.com/3748453/50407004-1dbc1180-07cf-11e9-8976-7472bc17183d.jpg)

##
[Vadym Yatsyuk](https://github.com/vadimdez)