Posts Tagged ‘library’

I’m Preparing!

Posted by (twitter: @charlottegore)
Thursday, December 4th, 2014 7:28 am

Three.JS isn’t a game engine. It’s great for very easy 3d in browsers, but… sheesh… you kinda have to do everything else from scratch.

To get ready for this Ludum Dare I want to already have the ability to import geometry from Blender and then actually interact with that geometry. Three.JS doesn’t have any collision detection stuff built in so… a bit of work is required.

So I found a cool javascript SAT library and a nice Spatial Hash grid implementation then wrote some code to convert the imported geometry into SAT convex polygons and generate bounding boxes for the grid. I threw it all into my stub game library thing and I got:


It kinda feels like cheating though, doing work like this before the competition itself. If I used Unity I’d get this sort of thing for free though.. so it’s okay, right? Right? *guilt*

Forgot one thing…

Posted by (twitter: @fullmontis)
Friday, November 28th, 2014 8:46 am

As usual, I forgot to post the personal library I will be using for this ludum dare!

Here it is.

Library Stuff

Posted by (twitter: @@UprightPath)
Friday, August 22nd, 2014 5:47 pm

So, it seems I will be joining in this time and besides some everyday life things nothing else seems like it’ll be encroaching. As such I spent a bit of time setting up some basic library things that I find useful and that I wouldn’t care if people use.

Library Stuff –

Main: A main class that’s meant to hold the instances of Managers that are used by the system.

Screens: Set up a basic libGDX screen abstract class with a stage and some basic rendering stuff (Clears the screen, provides space for setting up some other GL options) and checks whether assets are being reloaded.

SoundManager: Very basic class for associating Sounds and ids that allows the control of volume/muting.

MusicManager: Very basic class for associating Music and ids that allows the control of volume/muting.


Also uploading all of the source code/assets to this location as coding goes on.

Gloop – Java game loop library

Posted by
Thursday, August 21st, 2014 4:01 pm

I’ve written a game library in Java providing basic game loop functionality, specifically for anyone using Java in LD30 to use. It’s available here on Github under the BSD 3-clause license. The usage is simple and will save you from writing a game loop yourself.

It also contains a little helper class, for a double-buffered BufferedImage render target thing. It’s tailored for my own games but you may be able to make some use of it. Enjoy!

If the baby stays in, I’m in

Posted by (twitter: @royvanrijn)
Thursday, August 21st, 2014 1:10 am

With my pregnant wife almost due I’ll hopefully be able to join this Ludum Dare. I’ve whispered to the unborn boy he should wait until at least monday with his ‘Hello World’…

Last Ludum Dare I spend the whole weekend not making a game, but making a small Javascript game library (which brings me as much satisfaction as an actual game being a pure programmer). This time I’ve polished the code a little bit and it seems like I’m ready to make an actual game with 100% my own library called Paca (no external libraries at all!).

But to do this I’ll have to declare the code I’m going to use, you can find it here:

Feel free to use or abuse it!

You can play around with this the test game here:

The framework should make it easy to implement a point-n-click adventure game, my favourite genre. If you want to see what the code looks like implementing the test game, please check out:

Be sure to set “Paca.DEBUG = true” so see the navigation mesh. Otherwise it doesn’t make any sense right now.

ps. Yes it has animation bugs, but that is because I’m reusing sprite-instances, not the library.
pps. Obviously I won’t be reusing the sounds and/or sprites, those will be redrawn during the contest!

My base code

Posted by
Monday, August 19th, 2013 12:44 pm

Hello !

I’ll be playing Ludum Dare for the first time this weekend, been looking forward to this for a while.
It will also be my first time creating a game! All I did until now is fiddle with graphics but never made it interactive.

I’m posting to share my base code, which can be found here:

The repository is ‘NxBase’, it’s a library I’ve started working on recently and I update it quite often. It contains some classes which I might move to the ‘NxGame’ repository, which is currently empty because I’ve never written any code for that library.

Good luck everyone!


Posted by
Saturday, March 23rd, 2013 11:17 am

Hey ludumers!

After watching Martin Jonasson & Petri Purho’s video a while ago, I learned 2 things :

  1. this “juicyness’ thing that these guys talk about actually exists and works
  2. particle systems are indeed fun to program!

Now think about it: adding particles and effects to a game is a really cheap trick you can do to make the game look and feel more lively, reactive and spectacular. Particles don’t really interact with anything existing in the game, they just spawn, live their glittery short life and die. It’s very easy to just plug in particle emitters in a almost finished game, set up some emitters and triggers and watch everything explode/sparkle.

With that in mind, I put together a particle system library in JavaScript that renders awesome particles on an HTML5 canvas. Since I’ve created it for an LD event, I named the library Particle48. I intend to use it in every game I’m going to make for LD and I thought I could share it with whomever is interested. Here’s the project on github and a demo – I wish this to become a collaborative work.

Here’s a screenshot, but bear in mind that screenshots don’t always do justice…


What To Stub?

Posted by (twitter: @csanyk)
Monday, December 10th, 2012 1:10 pm

Getting ready for LD25.  I’m using GameMaker again for this one.

Most of my GM projects tend to have some similar things in them.  In order to get something more out of my LD experience, I don’t want to continually re-write the same sort of code from scratch with each project.

Compo rules say that you can use “all publicly available libraries and middleware”, so I’m considering bundling up some useful things and creating a “stub project”, that will be like the equivalent of library/middleware in GameMaker-speak, so that I don’t waste precious minutes during the compo writing the same sort of code I always write in any GameMaker game, and can put as much of my 48hrs into creativity and design.  Conveniently, this will also serve as my Warmup project this time around. Now, granted, I can only get some much done in the next couple days leading up to LD25, but over time if I continue to maintain this project it could turn into something pretty cool.

I’ll probably maintain this and add to it for future LD48 (and other game jams).  So my first question is: What to throw into this thing?

Some thoughts:

  1. A system of rooms that provides a generic Title Screen, Instructions Screen, and Game World, along with navigational objects and such that switch between them.
  2. Scripts for handling keyboard input (or other controls, such as mouse or gamepad or whatever).
  3. Handy math functions that aren’t built into GameMaker already (such as ???)
  4. A hierarchy of pseudo-abstract classes to facilitate implementation of common design patterns for Player, Enemy, Terrain, and Pickup objects.  For example, a common way of implementing a Player is to have a parent Player object, and separate objects for the Player_dead, Player_hurt, and other states.  These would be empty, or mostly-empty, to facilitate development of *whatever* type of game you wanted to make with GameMaker, but would help by providing a little bit of structure to the project.
  5. Code that supports cool visual effects (as I come up with them, over time), such as motion blur, typewriter text, or who knows what.
  6. “Engine” code for platforms, physics, or whatever.
  7. I’m open to ideas.

What would you like to see? Drop a comment, be specific.

Consolator 2.10.21

Posted by (twitter: @jorjongames)
Sunday, October 21st, 2012 5:38 pm

Looking for a Console for your Flash game? I’m currently developing Consolator, a simple library which attachs a console to your project, ready to use and fully customizable.

You can use it to debug your variables, or change your game while playing. You can easily call the methods of the objects you bind.

Some features:

  • Categories of messages, you can hide what you don’t want to see.
  • Bind any class and you can automatically access its public methods.
  • Visual auto-completion with a popup, just like an IDE would.
  • Easy integration: just addChild(new Consolator());
  • Fully customizable: change color, background, position, size, etc.
  • Remember the last commands used so you don’t have to write them again.
Download it from

Your ideas are welcome at

My Personal Lib : lfspm.lua

Posted by
Tuesday, August 21st, 2012 4:58 am

I made this because there is some bits of code in my warm-up that could be reused for others projects .

Yes, it’s called lfspm . It stand for LevelFontSoundParticlesMusic . this lib for the love framework permit you to :

  • Load a tile based level with a collision system .
  • Load a bitmap font and print it.
  • Play sounds.
  • Have a particle system.
  • Play a music.

I basically copy-pasted code from my Warm-up in a single file.

Download : Here

Note that :

  • The level format is a bit complex . You have a img/tileset.png, a img/tilesetdata.png who is the size of img/tileset.png divided by tilesize, and define properties for the tiles, and some lvl/number.png which use r and g for x and y of the tileset…
  • You need SECS to use this lib.
  • You must have defined scale and tilesize .
  • You are totally allowed (and encouraged) to modify, improve, and distribute this code .



AS3 Vector Utils

Posted by (twitter: @mimshwright)
Tuesday, May 8th, 2012 3:27 pm

Hey folks,

After the compo I decided to clean up and make available the Vector utility functions I have used in some of my games. I hope you find this repo useful for your future projects. Please let me know if you see anything that is broken/wrong or that you’d like to have added.

AS3-Vector-Utils on GitHub.

I probably won’t use this next weekend, but I’m posting this just in case I do want to use it.
GNI is a library to facilitate some simple, easy to use communication between a server and any number of clients.
Please note that this was coded in a relatively short time span, it was not tested extensively, network code is vulnerable to tons of unpredictable bugs, and my experience with netplay development is limited.
What I want to say is, don’t rely on it unless you’re capable of fixing bugs in it, as it might break at the worst possible moment.
The example chat program I wrote seems to work perfectly, though, so it should work. ‘Should’ being the key word here.

-Simple way to send signals from server to client and vice versa, without bothering with minor technical details
-Automatically calls a function when a signal is received, a player connects, or a player disconnects

Code includes a simple chat server project and chat client project as examples.

DLL download link (5 KB)
Source download link with example (19 KB) (Microsoft Visual Studio 2010 solution)

How it works
Small packages of information called GNIDatas are sent through the library. When received, it’s reconstructed as a GNIData struct.
GNIData consists of a key-value pair, with the keys or values being shorts (16-byte integers), strings, or nothing.

-The server class must inherit from the library’s GNIServer class.
-Call StartServer(…) to start the server. You can have it check for incoming signals automatically, or choose to do so manually by calling Update().
-Override OnDataReceived(GNIData data, uint source) to interpret signals. It’s called from Update when a full GNIData has been received. ‘Source’ is the clientID of the client that sent the signal.
-Override OnClientConnected(GNIClientInformation client) if you want something to happen when a player joins. (The client is automatically added to the client list.)
-Override OnClientDisconnected(GNIClientInformation client) if you want something to happen when a player disconnects. (The client is automatically removed from the client list.)
-Use SendSignal(…) to send a GNIData to a client, or BroadcastSignal(…) to send a GNIData to every client.
-Send empty signals (datatype and valuetype ‘none’) if you want the server to automatically detect if a connection has been lost; otherwise it won’t notice until it fails to send a signal to it.

-The client class must inherit from the library’s GNIClient class.
-Call StartClient(…) to start the client. It WILL NOT check for incoming signals automatically; call AutoPoll() to have it do that. Alternatively, call Update() whenever you want to check for incoming signals.
-Override OnDataReceived(GNIData data, uint source) to interpret signals. It’s called from Update when a full GNIData has been received. ‘Source’ is always 0 and meaningless in the client.
-Use SendSignal(…) to send a GNIData to the server.
-To be honest, I’m not sure what happens when the client unexpectedly loses connection to the server. It’ll probably throw an exception, so just catch that.

Does not exist. If you can’t figure out the code, it’s best not to use it as it might still be buggy.

This work is licensed under a Creative Commons Attribution 3.0 Unported License.
You are free:
* to Share — to copy, distribute and transmit the work
* to Remix — to adapt the work
* to make commercial use of the work
Under the following conditions:
* Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

Have fun, and good luck with your games.

Presenting VDZ’s Basic XNA Sprite Engine

Posted by
Sunday, April 15th, 2012 3:06 pm

Since I didn’t want to rewrite a whole bunch of code next weekend, I decided to tidy up and release this bunch of code.
It’s some helpful code that allows for easy sprite handling in XNA 4.0.

-Easy sprite creation (just CreateSprite(name, position) and it’ll automatically render it from that point on)
-Changing position, scaling, rotation is also easy
-Depth system where deeper sprites are always rendered behind less deep sprites
-Automatically loads the Content/Graphics folder for you so you can just refer to the images by name
-Basic layered sprite support (multiple sprites combining to make one sprite, for example a base body with armor and a weapon overlaid on it)
-Basic animation support
-Licensed under Creative Commons Attribution 3.0 Unported, so you’re free to modify it or use it commercially

Code includes a simple example project.

DLL download link (MediaFire, 7.43 KB)
Source download link with example (MediaFire, 92.74 KB) (Microsoft Visual Studio 2010 solution)

Basic documentation

How it works
-Create a folder ‘Graphics’ with at least 1 image in it in your Content folder. The folder or any of its subfolders must not contain any non-graphic files.
-Put a SpriteFont in your Content folder with the name ‘Default’. It will be used as font for GTexts and the log.
-Call SpriteEngine.Initialize in the constructor of your XNA game class (note that it MUST be in the constructor, NOT in Game.Initialize()), after setting Content.RootDirectory.
-Call SpriteEngine.LoadContent in the LoadContent method of your XNA game class.
-That’s all the initialization it needs. Call SpriteEngine.Draw in your Draw method to actually have it do something. Note that it does not clear the screen for you; keep GraphicsDevice.Clear in there.
-If you want to use animations or ‘camera scrolling’, call SpriteEngine.Update in your Update method.
-From now on you can use SpriteEngine.CreateSprite to create sprites in your game. It returns a sprite object, which you can use to change its position, rotation, image, etc. Use SpriteEngine.EraseGObject to erase a sprite, or SpriteEngine.Nuke to erase everything.

SpriteEngine – Main class. Most of the functions you need will be in here.
GObject – Base class for displayable objects (Sprites and GTexts). Contains basic information like position, scale and depth.
GText – A displayed string that can be moved around and has a depth, much like a sprite.
Sprite – Class representing a sprite, containing basic information such as its position, images, rotation, scale, etc.
LayeredSprite – A sprite composed of multiple sprites. Uses a simple layer system where when the sprite is drawn, all of its sub-sprites are drawn at its location instead.

Details on what each property and method does can be found in comments in the code, I’m too lazy to type them all out.

This work is licensed under a Creative Commons Attribution 3.0 Unported License.
You are free:
* to Share — to copy, distribute and transmit the work
* to Remix — to adapt the work
* to make commercial use of the work
Under the following conditions:
* Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

Have fun, and good luck with your games.

Java Pathfinding Library

Posted by (twitter: @xSmallDeadGuyx)
Friday, December 16th, 2011 2:00 pm

Just releasing a quick library I plan to use in Ludum Dare, consisting of a maze generator and an implementation of A* in java.

jsGameSoup cross browser Javascript game engine

Posted by
Saturday, July 30th, 2011 1:30 am

Hey LD48ers,

Just wanted to post a quick heads-up about my cross-browser Javascript game dev library, jsGameSoup.

I think you will find it a very quick way to make a game and get it in front of players! For example, I made this demo in a few hours. :)

Have fun!

SFML and AntTweakBar

Posted by (twitter: @sirGustav)
Friday, August 28th, 2009 3:15 pm

I couldn’t find any ready-made function for connecting sfml and AntTweakBar so I made one. Somewhat ported from the sdl source, and I figured I’d post it here since someone might want to use it.

SfmlHandle(), line 40(currently) in this file. It is currently kinda hacked together so it doesn’t support scrolling or text-input (yet), but it’s better than nothing :)

[cache: storing page]