Jump to content

Javascript Game Engine definitions for TypeScript?


deis
 Share

Recommended Posts

Does anyone know of any currently available? Or anyone have some news on any pure TypeScript game engines?

 

I have been heavily into TypeScript lately; writing a little game with it right now actually.  But, I have been having to mostly roll my own stuff, which is fun but time consuming for me right now.

 

Thanks!

Link to comment
Share on other sites

Our entire framework is written in TypeScript too, so we have loads of classes that could be useful for you if you need something specific. But in general we'll release the whole lot shortly - we're building a pretty significant game for the BBC using it at the moment, and once released (end of March) we'll be in a much better state to finally open source the framework itself (as it will have been battle tested via a huge project)

Link to comment
Share on other sites

I am stoked to see it! I am currently only writing a few things that will help me out for the time being. I really don't have the time right now to code a whole library from scratch, at least not until I get some personal projects out of the way. I hope there are some other game devs that utilize TypeScript here as well because I would love to have some other minds to bounce things off.

 

(Somewhat off-topic):

I am really enjoying the simplicity and cleanliness of TypeScript, and I wish to try and push some of my colleagues to see some of the value of it. I was a Flash developer for over 4 years with my company, and last year we transitioned our final Flash client to HTML5 related techs. So much of my time has been spent learning JS/CSS3/HTML5 ins and outs as well as I knew Flash. I have really found TypeScript to be a MUCH more efficient and friendly approach. I picked up on it in minutes, compared to constantly /facepalming with straight Javascript. 

Link to comment
Share on other sites

There are TypeScript packages for sublime I believe, but a lot of the benefit of TS comes from its Visual Studio integration imho. JavaScript itself is fine and WELL worth picking up, maybe start with some of the tutorials on http://www.html5canvastutorials.com/ or a book like Core HTML5 Canvas (http://corehtml5canvas.com/) which has lots of game specific sections in it.

Link to comment
Share on other sites

I understand that the TS library files will be compiled into JS.
I also guess we'll be able to access library files from JS code or from TS code.
My question is, what language do you recommend to coding games using KiwiJS?
Do you intend to help developers migrate to TS (tutorials, examples, etc.)?

Link to comment
Share on other sites

Hi deis,

I just posted a game I made with TypeScript here : http://www.html5gamedevs.com/topic/39-germiz-an-html5-puzzle-game/ :)

Game engine and renderer are written in TS, and the main game file is JS/JqueryUI for UI stuff and scenes .

 

what's good with TS is that generated JS remain readable and maintanable if you want to abandon TS.

 

it'll also make the transition to ECMA 6 easier hopefully :)

 

my dev environment is VS2012 with TypeScript and a post build event that compiles everything with google CC...

and I'm also migrating my nodejs projects to VS2012 since node-inspector is now working good with windows :)

Link to comment
Share on other sites

I didn't measured significant benefit from compiling Germiz (the game I posted)  code with google CC since the graphics are quite simple.

 

but in another project I'm working on the benefit was impressive, especially for cross-browsers performance...  that project is an isometric MMORPG in HTML5 (prototype available here : http://demo.ezelia.com ) ... and as you know, isometric rendering is hard to optimize with classic optimization tricks like rendering only the changing part of the scene ...etc

you can test the proto and tell me what do you think about performance ;)

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...
  • 2 weeks later...
  • 9 months later...
  • 5 years later...
On 2/15/2013 at 8:13 PM, deis said:

Does anyone know of any currently available? Or anyone have some news on any pure TypeScript game engines?

 

I have been heavily into TypeScript lately; writing a little game with it right now actually.  But, I have been having to mostly roll my own stuff, which is fun but time consuming for me right now.

 

Thanks!

https://github.com/zlatnaspirala/visual-ts-game-engine Take a look.

Link to comment
Share on other sites

  • 5 months later...

Project : Visual ts game engine

based on Matter.js is 2D rigid body JavaScript physics engine for the web.

I use my own concept: take lib for great benefits. It means that i import only staff that i can't make in proper way in proper time, all other coming from head. For example Physics was imported in role of npm package for typescript matter.js variant and i keep dependency healthy. In networking aspect i use full-duplex connection under web-rtc protocol. Pretty nice working combination of physics and realtime-multiplayer connetions. PeerToPeer used for game-play and classic websocket(socketio) for session staff. HTMLRequest used only for loading html parts in run time (on request) because i want clear single page application with all PWA features inside. Also video chat is integrated based on signaling server. No video recording for now (next features).

 

  • Writen in typescript current version 3.7.4.
  • Text editor used and recommended: Last version of Visual Studio Code. Luanch debugger configuration comes with this project (for server part).
  • Physics engine based on Matter.js - Matter.ts (npm project).
  • Multiplatform video chat (for all browsers) implemented. SocketIO used for session staff. MultiRTC2 used for data transfer also for video chat. MultiRTC3 alias 'broadcaster' used for video chat.  

 

https://github.com/zlatnaspirala/visual-ts-game-engine

https://maximumroulette.com/applications/visual-typescript-game-engine/single-player/

platformer.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...