Questions tagged [typescript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 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 ...
3
votes
1answer
182 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 ...
0
votes
0answers
13 views

calling function with callback inside update

I am using cocos creator with typescript to make a game. The problem I am facing is weird. check out the following code : ...
0
votes
0answers
14 views

Loading resources on OnLoad function

I am trying to load a json file using the cc.loader.load function in onLoad() function as shown below, I also have used some console.log() functions to see the order of execution. ...
0
votes
0answers
45 views

How to import JSON animation file into Cocos Creator using Typescript?

I'm in the process of making a game and I want to import json animation file from remote resource into the game using Typescript, currently using Xampp as the localhost. There is no problem for me to ...
0
votes
0answers
68 views

Slot Game inquiry. How to set the limit times of auto play?

I'm building a slot game, one line with three reel, using CocosCreator and Typescript. There is an already built auto-spin function once start, it will spin the reel infinite times. The spin will ...
1
vote
1answer
32 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 ...
0
votes
1answer
332 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 ...
1
vote
0answers
90 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
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. ...