Abstract
TypeScript ( http://typescript.org ) is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript is cross-platform, runs on any browser, and is open source. Microsoft created it, and it’s hands down one of the best languages for building HTML5 games. One of the great things about TypeScript, apart from adding typing to JavaScript, is that it allows you to start using some of the cool features of ECMAScript 6 (ES6) now, even though it may be years away from being finalized. This means that you can put to good use classes and other higher-level constructs that you find in languages such as C# and Java; moreover, TypeScript is incredibly similar to ActionScript 2 and 3. The final key advantage of TypeScript is that it outputs human readable JavaScript, plus you can use existing JavaScript libraries or inject the code directly into your TypeScript classes and start taking advantage of typing provided by the compiler.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Colt McAnlis
About this chapter
Cite this chapter
McAnlis, C. et al. (2014). Introduction to TypeScript: Building a Rogue-like Engine. In: HTML5 Game Development Insights. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6698-3_19
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6698-3_19
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6697-6
Online ISBN: 978-1-4302-6698-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books