A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [typescript]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
88 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
17 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
0answers
11 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
11 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
42 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
67 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 ...
0
votes
1answer
302 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. ...