Skip to content

Creates a hitscan, that is a tool often used in video games, to detect a collision between a ray cast by the player, and a taret.

License

Notifications You must be signed in to change notification settings

waheeduk/2D_Hitscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D_Hitscan

A hitscan is a tool often used in video games, to detect collisions between any character that a player might control, and a target that the player might aim at.

This short code written in C demonstrates a working example of a hitscan.

Dependecies

The code is written on top of the raylib library. The raylib library is a small lightweight library written entirely in C to help encourage video game programming. Instructions on how to compile raylib can be found on the raylib wiki.

Licence

This code is licensed under the MIT Lincense.

GIF demonstrating a hitscan. The player in black, detects and hence changes the colour of the rectangular and circular target

About

Creates a hitscan, that is a tool often used in video games, to detect a collision between a ray cast by the player, and a taret.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages