6 releases (3 breaking)

0.4.0 Jun 26, 2020
0.3.1 Jun 19, 2020
0.2.1 Jun 18, 2020
0.1.0 Jun 16, 2020

#1565 in Game dev

Apache-2.0

33KB
508 lines

Cheats

Version License Total Downloads Recent Downloads

Build Coverage
master Build on Master Coverage on Master
development Build on Development Coverage on Development

cheats is a shell backend for games. Basically, it helps you invoke functionality with a Valve-game-like shell grammar.

The library is not yet production-ready. It has a very simple implementation of developer console and might lack some features you might desire.

Shell Grammar

There are many conventions about how to cheat. Grand Theft Auto series receive sequential keypresses and invokes functionality. Age of Empires II has a simple textbox to invoke a cheat but its cheats do not accept any arguments.

In this library, cheats, the developer console of Valve games such as Half-Life, Counter-Strike, Portal, Left 4 Dead etc. has been an inspiration and it is implemented in such a way. The grammar is similar to below.

// this is a comment
# this is a comment as well
cl_hello // without args
cl_hello Eray # with args

Documentation

See the documentation to learn how to use this library.

Dependencies

~3MB
~42K SLoC