Вы находитесь на странице: 1из 1

FEED Side project

GAMECONTROLLER.JS better it would be for other developers (and myself) to


build interesting projects with it.

Alvaro Montoro on his library for putting What technologies were used in building it?
gamepad functionality in the hands of developers The core of the library is the Gamepad API and its
extensions (like the game controller vibration). It was
SIDE PROJECT OF THE MONTH
built using Vanilla JS in an attempt to keep it free of
other libraries or plugin dependencies and also as
Tell us what your side project does. light as possible (the current version is around 6KB).
IN FO
GameController.JS (https://netm.ag/2FuWCsj) is a
JavaScript library that enables developers to manage How has it been received?
gamepads in all modern browsers. Its goal is to The first people that tried the library – and gave the
remove the initial complexity of the original web API. thumbs up – were my four-year-old and two-year-
old children. They are still too little to play games like
Why did you create it? Guitar Hero or Dance Dance Revolution but they enjoy
While searching for a web API to integrate in a pretending to play with the drums and guitars. They

ALVARO different project, I was surprised to find that there were excited when I used the library to build simple
was a standard Gamepad API. I enjoy playing games versions of those games they could play with the
MON T ORO and it had this cool factor that made it fun to learn. controllers connected to the browser.
Montoro is a software After getting the first snippets working from Received warmly by the developer community,
engineer passionate
scratch, I realised that every step in the process GameController.JS is fairly recent but already several
about web technologies
in general and HTML and required many repetitive tasks and, although not projects started linking it as a dependency to build
CSS in particular. excessively complex, it was going to be difficult to web games with gamepad support.
w: alvaromontoro.com maintain. Building a library to simplify the interface
t: @alvaro_montoro was a natural move and it almost happened without What do you think you’ll do next with it?
even realising. The Gamepad API is an actively evolving document,
which means that GameController.JS has to be
What were you hoping to achieve? updated often to keep up with the new changes. The
At the beginning, developing the library was more of library needs some polishing, expanding it to include
a personal and learning challenge but soon I came to more functionality and extensions and adding custom
the realisation that I not only wanted to be the JavaScript events.
developer of the library but also one of the users. And As mentioned before, the next step would be for me
after seeing how repetitive and tedious some of the to become a user of the library and build a version of
steps were, the goal in mind soon became simplicity. a game like DDR with open and accessible features to
The simpler and easier to use that the library was, the make it available for everyone.

12 march 2020

Вам также может понравиться