Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Tech Exploration: Multiple Inputs with Typescript

A topic by pritt created Aug 06, 2022 Views: 474 Replies: 1
Viewing posts 1 to 2

First some quick background: Like most professionals working in the industry, I’ve been pigeon holed into a small corner of the industry, so need to push the boundaries of my skills on my own time. So this is the beginning of a project that will eventually grow into something real.

But for now, just a video - no live demo yet.

So I wanted to read from multiple inputs (both keyboard and game controller) in Typescript. I know Phaser has this in some limited capacity, but I use both Phaser and Angular together, and needed the same input to control both.

Here’s a video of my most recent experiment

Also, I don’t see many people discussing Typescript or any of the Typescript/Javascript driven engines (Phaser, Babylon, etc). Is this something people would be interested in? As in, should I continue to post about this, or just shut up and make games for people to play? :)

(1 edit)

Just a quick update: I did a bit more work on tying this to an actual character. This is probably all I’ll do with this, and I’ll move on to a real project :P

for those interested here’s a short demo video followed by all the source code: Video (no sound):

And the project source: https://github.com/paulreitz/game_experiments

The assets folder does not exist, since I got the assets from people here, and I don’t want to just give them away.