Answer the question
In order to leave comments, you need to log in
Are there game engines that are friendly with typescript?
For the purpose of self-education, I wanted to sketch a simple game in TypeScript. The problem is exacerbated by the fact that I’m completely lazy in my old age and want to build into one file and livereload out of the box (in other words, webpack or browserify).
First of all, I paid attention to Phaser, remembering that it seems to be written in TS. It turned out that this hasn’t been the case for a long time, modern TS doesn’t even pick up without decoy patching .d.ts
, and how it’s all loaded into webpack, it makes your hair stand on end . .d.ts
is also far from ideal, and for some things you have to type manually any
, which, in general, kills the point of writing in typescript.
A cursory google turned up excalibur.js , but thank goodness it's not all there either. The official examples use a cavernous approach like "nafigat in the head of the scripts manually . In general, without manual editing, .d.ts
again, it does not work , neither under 1.8, nor under 2.0, nor with or without webpack.
Please do not send to https://html5gameengine.com/ , but share your live experience.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question