In this article i will show you how to port existing game for INSTEAD engine to flash app.
I will port tutorial game (tutorial3), which you can get with INSTEAD sources.
You can read about INSTEAD on its official page or on its Google Code page.
I think it's enough, so let's start.
Nov 5, 2011
Oct 27, 2011
Oct 25, 2011
Oct 3, 2011
INSTEAD(f) v0.0.2
On September 20 i've released 0.0.2 version of INSTEAD.
So, what changed? here's the list:
Game on Newgrounds
Game on Kongregate
So, what changed? here's the list:
- My own HTML-like language parser with images support
- Pictures fading
- Support for menu clicks action
Game on Newgrounds
Game on Kongregate
Labels:
postmortems
Jul 12, 2011
INSTEAD(f) Postmortem
A few days ago I released the AS3 port of engine for text-based quests INSTEAD.
So, some of the results, the difficulties encountered and future plans.
The biggest problem was to understand how supply embed files to the lua interpreter.
Much easier than I thought.
First create a class that will initialize the VFS:
Then we should initialize VFS and lua interpreter:
Also had to add some functions in lua wrapper for AS3. The list will add later.
Future plans:
http://www.kongregate.com/games/zaynyatyi/the-returning-of-the-quantum-cat
http://www.newgrounds.com/portal/view/574142
So, some of the results, the difficulties encountered and future plans.
The biggest problem was to understand how supply embed files to the lua interpreter.
Much easier than I thought.
First create a class that will initialize the VFS:
package
{
import flash.utils.ByteArray;
import flash.display.Bitmap;
public class FS
{
[Embed(source='file.lua', mimeType="application/octet-stream")]
public static const file_lua:Class;
private static var _filesystemRoot:String;
public static function filesystemRoot():String
{
return _filesystemRoot;
}
public static function Init(libInitializer:*):void
{
libInitializer.supplyFile("builtin://file.lua",
new file_lua() as ByteArray);
_filesystemRoot = "builtin://";
}
}
}
Then we should initialize VFS and lua interpreter:
FS.Init(LuaAlchemy.libInit); lua = new LuaAlchemy(FS.filesystemRoot());The problem that I could not solve is to prevent page scrolling when scroll event occurs in flash.
Also had to add some functions in lua wrapper for AS3. The list will add later.
Future plans:
- implement support of INSTEAD modules;
- support for pictures in the inventory and main text block;
- change TextField to something better with html support.
http://www.kongregate.com/games/zaynyatyi/the-returning-of-the-quantum-cat
http://www.newgrounds.com/portal/view/574142
Jun 15, 2011
Jun 14, 2011
Subscribe to:
Posts (Atom)




