Skip to content
Yet another 'Achtung die Kurve' clone
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
achtung.js
botfield.js
controllers.js
defaultoptions.js
drawing.js
gamefield.js
gameround.js
head.js
index.html
input.js
keycodes.html
main.js
player.js
powerups.js
style.css
utils.js

README.md

Achtung

Play here

A clone of the game Achtung, die Kurve.

Now in your browser with bots, powerups, as many players as you want and many configuration options.

Instructions

Default game

With the default options, there are two controllable players:

  • player1 is blue and is controlled with the left and right arrow keys
  • player2 is red and is controlled with the A and D key

Press your left key to steer to the left and your right key to steer to the right. Avoid hitting any lines or the edge of the playing field. The last one to stay alive wins the round.

Simple configuration

A basic understanding of the JSON syntax is assumed.

Common game options

With the option "wrapboundaries" you can set whether hitting the edges of the playing field will kill the player, or teleport them to the other side.

If you remove the "powerups" option, or set it to an empty list, no powerups will be spawed;

The lines have holes in them at random intervals. To disable this, set the "holes" option to false.

Players

The "players" options is a list of players.

You copy any player object to duplicate, or remove it.

When creating a new player object, you can set several options:

  • name: this will be the name displayed with the score
  • colour: the colour of the line and the score. Defaults to white. Any CSS colour value can be used.
  • controltype: set this to "input" if you want to control the player with the keyboard
  • leftcontrol and rightcontrol: only available when controltype is "input". Set the keycodes to control your left and right. keyboard_KeyA means the A key, keyboard_ArrowLeft the left arrow key, keyboard_Digit1 the 1 key in the top digit row, keyboard_Numpad1 the 1 key on the numpad etc. Test here to find the correct keycodes
  • template: When a template is given, all options of the named template are used in this player. Options given directly to the player will overwrite the template options. The easiest way to get a bot is to set the template to "pointsbot" (assuming you still have the pointsbot template)

Powerups

There are several powerups in the game:

  • green: slow: the player will be slower for 3 seconds.
  • orange: invulnerable: the player is invulnerable to other lines fo 2 seconds.
  • purple: change: the left and right controls are swapped.
  • lightgreenis: randomize aka 10wasmachine: all players places and lines are changed to another player. current modifiers (such as slow) are changed as well. all player will be invulnerable for 1 second.

To do

  • Make a form to set all the options without edition JSON
  • Write advanced documentation
  • Play a fixed number of rounds, or to a maximum score
  • Give powerups images
  • Make better bots
You can’t perform that action at this time.