You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You don't need to compile this, it's JavaScript. You can alter the code from the console and make changes in the browser. However, if you want to change the elements that are called and host it on a local machine; unzip the "source files" and then just make changes to any of the files you want with a text editor. Then, save it all and then zip all the files again. I'm just a old n00b. If I used the wrong terms... nobody's probably read this comment anyway.
Reacted by Dionysios Tsamouridis
Reacted by Tobias Berger, FluxFlu, basbase, Brede Fritjof Klausen and Lee
This repo is in TypeScript, not JavaScript. TypeScript is compiled to JS. The repo has to be compiled from TS to JS for it to run in the browser. The files candybox2_uncompressed.js and candybox2.js are the results of that compilation.
I already compiled it, but I had to use an old version of TypeScript and change how the compile scripts checked for TypeScript. As far as I can tell, the repo as-is shouldn't have been able to compile, yet it has been compiled.
Activity
Raijinili commentedon Aug 31, 2019
I managed to compile it under TypeScript 1.4.1 by removing the check for TypeScript. Huh? What version was used in the first place?
F-Unction commentedon Sep 12, 2019
You need't to compile it.You can play it by opening index.html.
Raijinili commentedon Sep 12, 2019
I plan to make some changes, so I need to compile it.
justgotdarker commentedon Sep 19, 2019
You don't need to compile this, it's JavaScript. You can alter the code from the console and make changes in the browser. However, if you want to change the elements that are called and host it on a local machine; unzip the "source files" and then just make changes to any of the files you want with a text editor. Then, save it all and then zip all the files again. I'm just a old n00b. If I used the wrong terms... nobody's probably read this comment anyway.
Raijinili commentedon Sep 20, 2019
This repo is in TypeScript, not JavaScript. TypeScript is compiled to JS. The repo has to be compiled from TS to JS for it to run in the browser. The files
candybox2_uncompressed.jsandcandybox2.jsare the results of that compilation.I already compiled it, but I had to use an old version of TypeScript and change how the compile scripts checked for TypeScript. As far as I can tell, the repo as-is shouldn't have been able to compile, yet it has been compiled.
kvaps commentedon Sep 20, 2019
Hi @Raijinili I was compiling it fine with docker and typescript@1.5.3. Try this:
Or ubuntu version:
Cheers!
Kreijstal commentedon May 10, 2021
gotta bless docker sometimes.
cyans-nya commentedon Jan 19, 2023
I compiled it but it got errors when I ran it.
It seemed it didn't require module before using it.
Such as MainLoadingType