Questions tagged [typescript]

The tag has no usage guidance.

0
votes
0answers
8 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
56 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
31 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
0answers
51 views

Unity Tiny Project TypeScript issue in Rider IDE

Currently i'm learning Unity3D Tiny Project, also i'm using Rider IDE for the development (TypeScript language). So my problem that's when i add new ecs component in the editor, i need to restart ...
0
votes
1answer
185 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
61 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. ...