Foumart Games Blog [    ] - [    ] - [    ] - [    ] - [    ] - [    ] - [ o ] - [ x ]
2017-05-01 JavaScript Sound Effect Generator SoundFX Collapse

Every year there is a unique JavaScript game development competition happening for a month, starting at 13th September - the #js13kgames. The Jam has one main characteristic: 13 kilobytes limit of the archived game source, as constrained by Andrzej Mazur - the compo author. I participated in 2016 with Skip'n Glitch - a game contained in a single html file and had no problem compressing the game in 13 kilobytes. However it wouldn't happen easily if some useful lightweight libraries weren't prepared beforehand. One such script is a sound controller from my less than 1kb js libraries.

Today I'm celebrating the received js13kgames t-shirt (and swag).
The t-shirt is wonderful - just for the Spring season (hope it wont attract a lot of bugs with the warmy yellow color :)

So I have extended the SoundFX library into an entire Sound Effect Class Generator for You:


(Woah! SoundFX replicating itself! Sound improvisations..? or it's already getting dangerous if this thing evolve into an uncontrollable AI or something :D)

  Sound FX  Generator
Tip 1: Include built ins in your collection by ticking the corresponding radio buttons.  Built in sounds:
Tip 2: Click the Equal sign (≡) to load and edit a sound/effect. Built in effects:
Tip 3: You can load an existing SoundFX library - just drag'n drop the js file here. 
Create your own sound:
Starting Frequency:

Frequency Change value:

Delay between changes:

Number of changes:

Volume (0-1):

Type (0-3):

Create effect by combining sounds:

none added

Your collection of sounds:
none added
Your collection of effects:
none added
SoundFX Class Generator:

SoundFX is using the Web Audio API to synthesize audio in the browser. It runs best on a recent version of Google Chrome, Opera or Apple Safari. Firefox supports Web Audio API as well, but sounds differently, not only because it cuts the negative value frequencies.

If you're looking for a clean and readable script, get it from my Github or JSfiddle.

 2016-11-23 JavaScript HTML5 Canvas Lens Flare effect

As the web tech is evolving, the flash player for web browsers is getting more and more obsolete. For example the biggest advertising platform - Google's DoubleClick dropped support for flash ads. I'm not speaking against the flash technology, which is still viable for game development (it can be easily compiled for mobile or wrapped into Steam). However in web there are new heroes and one of them is the HTML Canvas. I've already shared some lightweight JavaScript libraries used in #js13kgames and today I'm sharing another class - Lens Flare effect! ..

 2015-02-28 Get the domain a SWF is hosted in with AS3

When creating a flash game for the web it's crucial to know the domain the game SWF is being loaded from. There are numerous ways to embed a SWF in a website and the different methods of obtaining the domain name at run-time are giving different values. For example a game could be hosted in but displayed in a web page at another domain, say In this case there is one method to obtain the domain that is hosting the SWF and other methods of obtaining the domain that is embedding (hot linking) that SWF...

 2014-07-03 Check HTML restrictions in SWF. Determine AllowScriptAccess and AllowNetworking with AS3

As I was digging around the allowNetworking setting and how to determine if it's allowed inside flash at runtime, I decided to go deeper and catch other types of embedding restrictions, like the allowScriptAccess parameter. I've seen sites that block outgoing links of certain flash files - in most cases flash games are prevented to access the web, resulting in negative effect over their authors - the game developers...

 2013-05-24 Atrakt 4096 successful entry in LudumDare#26 Compo

Atrakt 4096 is minimalist mixture between Sci-Fi action and a sliding puzzle. Vanquish all alien spawns in this level based game, involving not only exploring and fighting but planning, stealth, strategy and logical thinking as well! This game was developed in Flash-AS3 and is an extension of my Attract 4kb engine which consists of 4 kilobytes of code (4 classes)...

 2013-04-10 DisplaceR - Displacement Map Filter Tweener - AS3

DisplaceR is a lightweight Displacement Map Filter Tweener targeting Flash Player 9. Written in ActionScript 3.0¹², DisplaceR is built with the idea to be as simple as possible, becoming accessible by all kind of flash developers and designers. Being a static class makes it available anywhere in your project. Tweening is achieved only with one line of code...

 2012-10-23 Attract 4kb a 4096 bytes adventure !

Born in 4kb Games on FlashGameLicense competition. A game that is exactly 4096 bytes :) It's featuring Artificial Intelligence, Fog of War, Player Health, 4 Maps and 12 Levels ! Developed in ActionScript 3 for Flash Player 9. Here is a Github link where you can view the optimized code... Copyright
© 2009-2017 by Noncho Savov is a computer game workshop and arcade website, led by independent game developer. The site showcases games and game prototypes invented and developed by Noncho Savov. Have fun!