Advertisement

Latest typescript Activity

Advertisement

Hi, I wanted to share the multiplayer game framework I've been working on, Hathora: https://github.com/hathora/hathora

Hathora makes it easier to developer multiplayer games with built in state synchronization, prototyping interface, and authentication. See more at https://docs.hathora.dev/#/

My vi…

3,907 views

This is my template in TypeScript that shows how to write unit-tests with mocks and spies: https://github.com/8Observer8/person-service-mocha-sinon-ts​ I wrote a short instruction in the README.md file. You can use Test-driven development:

Test-driven development (TDD) is a software development proc…

16,815 views

Solution:

const userData = { name: name };
(this.body as any).userData = userData;
function detectCollison(): void
{
    const dispatcher = physicsWorld.getDispatcher();
    const numManifolds = dispatcher.getNumManifolds();

    for (let i = 0; i < numManifolds; i++)
    {
        const contactMa…
4,544 views
I cannot migrate a simple example from cannon to cannon-es

Member

marcofugaro commented 23 hours ago

It does not work because that's a commonjs module. You need an umd module to make it work with RequireJS.

Cannon-es does not expose an umd module. Please use esmodules directly or alternatively use any bundler.

This answer was here: https://github.com/pmndrs/ca…

4,012 views
8Observer8
January 29, 2021 11:48 PM
Usage of Planck.js with TypeScript (Planck.js is a port of Box2D Physics Engine)

My example shows how to use Ammo.js with TypeScript in Debug and Release modes: hello-planckjs-webgl10-ts

You should install these modules globally:

  • npm i typescript -g
  • npm i browserify -g
  • npm i uglify-js -g

Install all packages from `package.json` using the command: `npm i`

Comment/Uncomment Debug/Relea…

6,321 views
8Observer8
January 29, 2021 03:12 PM
Usage of Ammo.js with TypeScript (Ammo.js is a port of Bullet Physics Engine)

My example shows how to use Ammo.js with TypeScript in Debug and Release modes: hello-ammojs-webgl10-ts

You should install these modules globally:

  • npm i typescript -g
  • npm i browserify -g
  • npm i uglify-js -g

Install all packages from `package.json` using the command: `npm i`

Comment/Uncomment Debug/Release…

10,551 views
8Observer8
November 21, 2020 03:30 AM
Triangle in OpenGL ES 2.0 (Qt5 C++, PyQt5) and WebGL 1.0 (TypeScript) for Desktop and Android

Version in WebGL 1.0 (TypeScript)

Run by one click in a browser: https://plnkr.co/edit/gAfPR7ZIKjJXulDI?open=main.ts&preview

Version in OpenGL ES 2.0 (C++ Qt5)

Create a QWidget project (without “Generate form”). Delete the Widget class. Add the …

10,556 views
werekarg
February 17, 2020 02:19 PM

cocos creator, which has a similar node-component system, uses events to communicate between components of the same node. for all intents and purposes, it works well.

i'm using signals (https://www.npmjs.com/package/@robotlegsjs/signals) and ioc/di (https://www.npmjs.com/package/inversify) to implem…

4,337 views
8Observer8
December 15, 2019 08:05 PM
NoobTuts Pong. WebGL 1.0, TypeScript

I rewrote the Pong game to WebGL 1.0 and TypeScript from the tutorial: https://noobtuts.com/cpp/2d-pong-game
I use a free hosting and sometimes my Node.js/Express server sleeps. Wait 10 second to wake up the server.

Run the release version in the browser: http://ivan8observer8.herokuapp.com/webgl10-t…

3,003 views
8Observer8
February 23, 2019 12:46 AM
Browserify TypeScript

It is the most common problem for anyone who starts to study TS. They cannot include a few ".js" files after compilation to <script> tags in "index.html".

It is very simple in JS. You have two files in JS and you can include them in "index.html":

index.html

<html> <head>   &nbs…

32,261 views
Advertisement
Advertisement