New feature: Gamepad support

Words
128
Reading
1 min
Listen
Play
8y

super binary man
This week I've added basic gamepad support that should work with most USB gamepads.
Implementation was relatively painless, however the gamepad API is not yet accessible on all browsers. You can see a full compatibility list here.

New Features

  • Gamepad support
    A new function in the events file takes care of handling gamepads. you can see it here.

Roadmap

I figure it'll be useful to start listing these as I post new features.

Implemented

  • Keyboard control
  • gamepad control
  • basic AI
  • basic platformer physics
  • sound effects
  • random binary sequence generation (AKA first mode)
  • collision detection, animated blocks
  • basic gameplay mechanics

Todo

  • multiple types of enemies
  • scoreboard
  • better graphics
  • music
  • difficulty settings
  • menu system
  • projectiles
  • bonuses
  • mobile support



Posted on Utopian.io - Rewarding Open Source Contributors

New feature: Gamepad support | Ecency