Archive

Posts Tagged ‘ios’

Dev Diary: Lokomotywa – Julian Tuwim

February 8, 2013 Leave a comment

Kids always says the truth. Creating application for kids is simple from one point of view but really hard from the other one. They will not tell you that animation lost couple of frames, but will tell you that this character is ugly and don’t want to play any more.



Peaple outside Poland probably hadn’t heard about Lokomotywa poem by Julian Tuwim, but in my country it’s one of the best know children’s poem ever. Big Rabbit made a marvelous job exploring it again in a completely new way. You can notice wonderful ilustrations, exclusive soundtrack composed especially for this book and narration made by Piotr Fronczewski (famous polish actor). Big Rabbit is a group on nice peaple who want to make things that are just outstanding.

Read more…

Advertisements

Dev Diary: Bridgy Jones

February 5, 2013 Leave a comment

People who say, that making games is easy, they don’t know anything about gamedev. I was working at different companies on variety of projects, but only game programming pushed my mind and skills to the next level. Maybe its passion? It doesn’t really matter now. Bridgy Jones is almost here!

Meet Bridgy and Bonner

From the idea through the prototype to the final product. Looks simple. Idea was simple – bridge builder. We decided to go with cocos2d framework for graphics, Box2D library for physics and Level Helper application for level design. Prototype was ready after two weeks. Final product planned in four months, worst case scenario – six months. Piece of cake! Really?

Read more…

Scripting iOS games with LUA (lua-wax)

April 6, 2012 Leave a comment

Creating game for iPhone/iPad is one thing, but making it enjoyable is way harder. Most of current games use physics for animation, to make scenes more realistic and not repeatable every time you start the same game level. You can teach your level designer Objective-C to code different behaviors for different things, but the simpler method is to script it in LUA. Lots of previous and today games use this scripting language to describe AI, events and many other things.

I wanted to implement LUA to my upcoming game and found pretty good library called wax. Its pretty impressive. All you have to do is:

#include
- (void) runLuaScript
{
    wax_start("your_script.lua", nil);
}

The problem was that you were unable to execute wax_start() function again (it was possible, but had no effect, script was not executed once again). It lead to big problem, how to load different scripts for different levels? To achieve it you have to clone/fork/download my forked version of wax that fixes that issue.

Steps to do:

  1. You can add my repository as submodule to your XCode workspace by executing command:
    git add submodule git@github.com:zbyhoo/wax.git
  2. Add libwax.a from your workspace to “Link Binary With Libraries” building phase
  3. Finally add “$(SRCROOT)”/wax/lib path (with recursive search) to your “User Header Search Paths” in Build Settings.

Now you will be able to do it this way in your application:

#include
- (void) runLuaScript
{
    wax_start("your_script.lua", nil);
    wax_end();
}

You can call runLuaScript method as many times you want.

Using you Objective-C classes in lua wax is really simple.

-- your_script.lua sample
local my_object = MyObjcClass:init
my_object:someMethod()
my_object:anotherMethodWithArgument("hello")
my_object:oneMoreMethodWithArgument_secondArgument("hello", "lua world")

For more details for lua wax take a look at Wiki page.

UPDATE:
My commits have been pulled to the original repo, so now you can use it instead of my fork.

iOS 5 Tech Talk – What it was about?

November 13, 2011 Leave a comment

I had opportunity to be at iOS 5 Tech Talk in Berlin (November 2nd). Ride to Berlin with my car took about 5 hours. After a night in hostel I took a subway to city center where Maritim ProArte Hotel is located (2011 iOS 5 Tech Talk location in Berlin).

Throughout the whole day (this conference took only one day) waiters served food and drinks. Nice, but lets focus on presentations. Here is the whole agenda with marked presentations that I choose (during most of the day there were 3 parallel presentations).

Read more…

Categories: events Tags: , , , ,