Questions tagged [typescript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
245 views

Representation of trains on a simplified rail grid

I'm working on a hobby game, basically about train dispatcher's job. (stack: Typescript, phaser.js) My map is based on a grid, each tile can hold 1 rail tile (well, except junctions, but we can ...
1
vote
1answer
40 views

How to manage server “view” of game board when it is shared by clients?

I'm currently creating a simultaneous turn based card game in which two players play cards in three lanes to determine who wins points in these lanes. I've been struggling this past week trying to ...
1
vote
0answers
103 views

Playing Background music

I'm trying to play background music for my game when it starts but I can't get it to work right. I'm not sure what's the right logic to do it. I this my code (written in TypeScript): ...
0
votes
0answers
37 views

WebGL not rendering properly without fullscreen

I've written simple WebGL code intypescript to render some graphics on the screen. But when I implemented lighting I noticed ...
0
votes
1answer
519 views

Parallax background in with depth in Phaser 3

I'm working on a 2D space shooter type of game in typescript using Phaser 3 and am trying to get a parallax background with different depths going. But I'm having trouble getting the math right. You ...
0
votes
0answers
28 views

Why are my explosions not showing?

I'm creating a space shooter using type script and I don't understand why explosions won't work meaning that nothing is drawn on the screen and I don't understand what I'm doing wrong. ...