Binaryen Windows example

stisa, Mar 20, 2017

In this example we will compile the C api hello-world on Windows, using mingw-w64.

Continue reading...

WebAssembly basic example: Adding

stisa, Mar 19, 2017

I’ve seen some examples but none that worked out of the box, so I made one. Based on the binary encoding spec.

Continue reading...

Compile nim on Android

stisa, Dec 18, 2016

Nim is a programming language that I’ve been playing with for the last few months.
Unfortunately, my pc is stuck in the limbo of warranty for the next month or so, and I found myself without any way to code.
Or so I thought, until I remembered the Android phone in my pocket and, with a bit of effort, I got Nim to compile on it!

Continue reading...

Nimble: running task before/after install

stisa, Oct 25, 2016

When you install a package through nimble, it performs an action called install. If you are the author of a nimble package, you may want to have nimble run a task before or after your package is installed, for example to git clone a dependency, echo some debug information or whatever. To do this, you can make use of two hooks that nimble provides when using the nimscript format:

Continue reading...

Snow/Luxe: Custom Web Layout

stisa, Dec 16, 2015

Hi everyone, this is just a quick post on a simple thing I found out today. When building for the web target with luxe, the default layout is just a black background with the game window in the middle. While this is okay while developing, I wanted to show a demo of the game on my website, so I wanted its layout to fit with the rest of the site.

Continue reading...

Luxe and Universal Windows Apps

stisa, Nov 21, 2015

I’m still playing with luxe, and I heard that there is the possibility to turn html5 apps into Windows Universal Apps(also known as UWA) and I had to try it, even if it’s just (from my understanding, anyway) a wrapper around a webview.
The following steps assume that:

Continue reading...

Luxe/Flow Hooks Example

stisa, Oct 2, 2015

I’m playing around with luxe, building a simple depth first search-based maze generator, which I plan on turning into a full game ( btw you can try it here ).
While iterating, I had to copy-paste the content of bin/web/ to the folder linked with the project git repo, but it got old fast, and I had to find a faster way.
At first, I tried using the --output-path <path> flag in flow, that overrides the flow tree project.app.output path. The problem with this method is that flow generates two folders, web and web.build, inside your selected path, and I didn’t like it very much.
That’s when I found out about hooks, digging trough flow source code.

Continue reading...

Starting with mint

stisa, Sep 20, 2015

Today I started experimenting with mint, a library written in the Haxe programming language.
It is a fairly new library, with relatively little documentation, but it’s also quite straightforward.
I pieced together a barebone example from the mint repo , with a window showing a label.
Here it is: github

Continue reading...

Kivy Layout

stisa, Aug 11, 2015

So I’ve started messing around with Kivy, and I was stuck trying to understand just how the layout thing works when using .kv code. And I think I finally understood what I was doing wrong. I was basically setting the layout of the small square that is the default widget size in Kivy so, knowing that, I tried creating the base widget as a layout and it worked :D

Continue reading...

Unity3D & accelerometer

stisa, Jul 8, 2014

You know that feeling when you spend ours thinking about an issue, and you finally understand something very simple was missing the whole time? Well, I know that feeling very well.

Continue reading...