Schwartz Engine

Schwartz Engine

About This

I develop Android Apps and games. I play board games and I am an experienced GM in warhammer Fantasy Role Play (1st and 2nd Ed). I am also painting and sculpting miniatures.
Yes that's right I am a freak - No mistake there. I am using this media to track my work and organise it a little.

Coding with Visual Studio Code on Linux

AppsPosted by Carsten Schwartz Mar 09, 2018 15:32
Yep that's right, I have been using Microsofts Visual Studio code on my Linux Box to play around with TypeScript, which is a really nice game development platform for the WEB. You can see a Demo of Triangle Collision I made Here.

It was a guy on the WEB that had made some nice starting points for working with TypeScript, who got me interested. And funny Enough Microsoft has made an IDE that can be used for developing TypeScript Apps. It looks a lot like Visual Studio, but has reduced functionality. And the great stuff is that they have made a version for Linux.

TypeScript is an extension of JavaScript and compiles to .js files. You can make classes, interfaces and I don't know what, If you're into OO development it is fairly easy to start using. I have inspired by the tutorials at Tyler Green and Typescript Games started making my own clone of the notorious Atari Asteroids Game from way back to learn the stuff, and then it is also a nice recap on Vector Calculus.

After a good start I had some problems being able to have one file per class I made. It turned out I had to use a reference tag with a path attribute (/// <reference path="../Commonlib/Vector.ts" />) to include other '.ts' TypeScript files and then add their paths in a file list in the files section of the 'tsconfig.json' file which defines the build of a typescript project.

And BTW! - I like the concept of using json for configurations instead of the dreaded non human readable XML ;-)

There are other ways to include/import classes in TypeScript and I went to great lengths to try them. I even installed a Virtual Windows using Virtual Box to try and see if the Visual Studio Community edition was better at this. Strangely enough Windows almost runs at normal speed inside Virtual Box. So with a more powerful laptop than my old i5 2 core clunker, you might as well stick to Linux and the run any Windows Development in a Virtual Box instance.

  • Comments(0)

Fill in only if you are not real

The following XHTML tags are allowed: <b>, <br/>, <em>, <i>, <strong>, <u>. CSS styles and Javascript are not permitted.