Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

minsik

5
Posts
4
Topics
1
Followers
A member registered Apr 28, 2017 · View creator page →

Creator of

Recent community posts

I actually did. Unfortunately it is not compatible with version 0.90 yet.

According to Duktape documentation and this list (see DUK 2.3 column), Duktape, the Javascript engine used by TIC-80, implements tail call optimisation. However, the code below eventually crashes when it gets  on call # 9997:


// title:  game title
// author: game developer
// desc:   short description
// script: js
function TIC() {
    cls()
    print('hello there!')
    recursive(0)
}
function recursive(i) {
    trace('recursive! ' + i)
    recursive(i + 1)
}

I've been looking everywhere but no one seems to have any problem with Duktape itself. TIC-80 seems to be using its latest version (2.6.0) since version 0.90.1706, so the code above should be working.

Any thoughts on this? Maybe I'm too tired and missed some mistake I made on the code above?

I'm facing different obstacles while trying to use it, and the last one was with imports: unless there is something about TIC-80 I do not know, I need to transpile TS code to one single JS file.  Using regular class imports with TS requires me that I should use either amd or System modules. But TIC-80 does not recognize the require function (as transpiled by amd option) nor the System object (used by System option). The message errors are:

ReferenceError: identifier  'define' undefined

and

ReferenceError: identifier 'System' undefined

I've seen a few references of TypeScript being used succesfuly here, so to those that do, I humbly ask: would you mind to describe with details how you do it? Are you having all your code into on single humongous file?

So far I accepted that transpile all my TS files to JS and manually copy and paste it to TIC-80 seemed the best option (since I do not want to deal with movingback and forth all the extra data about tiles, sfx, map, etc under the code on very long comments). If I need a some kind of  complex build process and not being able to use imports on external tools takes away a lot of the main appeals of the platform to me...

To avoid sidetracking, I would prefer to not discuss using other languages at least for now.

Thank you very much for any inputs.

Project is still on very early stages, but it is playable for anyone who would like to give it a try. Most of my ideas follows JamesTown (vertical in wide-screen, two types of guns: spread and beam, no power ups) and Raiden 2 (overall aesthetics).

Use space to shoot and arrow keys to move around.


http://minsik.itch.io/scorched-skies


Join blocks to complete rows that will be destroyed, freeing space s you can keep playing. The more rows you complete, more points you get.



You can pause it with Esc, save it S key, and load the last saved game with L key.


https://minsik.itch.io/block-drizzle