Archive for iPhone App

Creating 3D-headers files for Blender-Models

Posted in Uncategorized with tags , , , on March 20, 2010 by bersaelor

I thought my little program that translates an “obj”-file made in blender to a c-header file that can be imported in an iPhone project might be useful to someone else. There is already a script available at Jeff Lamarches blog but the calculation of normals didn’t work that well for me. He also provided another example here which I started my work from, but the issue of normals wasn’t addressed back then.

Continue reading

iPhone Client for Multiplayer with NSStreams – Part 2

Posted in Uncategorized with tags , , , on March 7, 2010 by bersaelor

In the first version of the communicator class we were only handling messages that were smaller then 1024 Byte.

To allow it to receive larger messages we need to know when an individual message is finished. Therefore we have to add a unique specifier to the string our server sends, for example “\r\n”. Then we can simply add an “NSMutableString msgBuffer” to our class and another method between the “- (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode;” and the “- (void) handleInput: (NSString*)string;” method that does the following:

- (void) processString:(NSString*)string {  
     [msgBuffer appendString:string];
     [string release];
     NSRange r=[msgBuffer rangeOfString:@"\r\n"];
     if (r.location!=NSNotFound) {
          [self handleInput:[[NSString alloc] initWithString:[msgBuffer substringToIndex:r.location]]];
          [msgBuffer setString:@""];
    }
}

Objective C professionals probably realize that I don’t like “autorelease”. The string-argument is supposed to be retained, as is the argument to “[self handleInput]”. I know an object is supposed to be released where it was retained but my original string was retained in “handleEvent” and released in “handleInput” and I didn’t want to change those two methods. This code would not be consistent with the older post otherwise.

Final Version of the Main Menu

Posted in Uncategorized with tags , , , on March 6, 2010 by bersaelor

This is the final version of the Main Menu. I added a blurred PCB- Layer behind the menu to increase the feeling of the menu as one object, not 4 separate buttons. Continue reading

New Buttons

Posted in Uncategorized with tags , , , on March 5, 2010 by bersaelor

I designed some new buttons since the old ones were only meant for temporary usage when I designed the menus.

Also I had an argument with a friend who told me my Buttons look stupid, who reminded me they were only temporary.

UPDATE:

My hexagons in the game actually gave the standard idea, but then symetric hexagons as buttons didn’t look that stylish. Asymptotic looked better but is similar to what has been done in other games. In the end that might not be a bad idea, to achieve some similarity to something people are used to.

iPhone Client for Multiplayer with NSStreams

Posted in Uncategorized with tags , , , , , on March 2, 2010 by bersaelor

When I was learning how to show Models with OpenGL I had the great Tutorials by Jeff Lamarche to help me with. But now that I was facing the development of a client-server pattern to build a multiplayer experience for my game I was stuck, because I couldn’t find any good help here.

Maybe there are others out there who’d appreciate some clarification and sample codes about that, so I’m trying to post something that I would have liked to use, when I was starting with the Topic.

Continue reading

Intro Video

Posted in Uncategorized with tags , , , , on February 12, 2010 by bersaelor

Here I tried to produce an Intro video for the App.

Sadly, I don’t think I was very successful. The only Idea that came to mind was a 2D Jump&Run like App that gets smashed by one of my 3D Mech’s. Maybe it’s the sound but doubt it really carries my message…

Anyway it is not rendered, instead I used the Standard EAGLView-Method, Models and 3DEngine I use ingame. The soundfile is the great “Negative Future”-Theme by ERH .

Youtube Video

Posted in Uncategorized with tags , , on February 5, 2010 by bersaelor

This is a small video I did a while ago.

I still had some bugs in the way Taps got handled there and I didn’t have the third race yet.

First Post

Posted in Uncategorized with tags , , , on February 4, 2010 by bersaelor

This will be my Blog  with some Insights into the Development of my first Iphone-App “Tactica“.

If you’re sick of mindless tapping for hours and you also think the Adaptions of PC-based Strategy games don’t really cut it on the tiny Screen of the iPhone then maybe I have somethong for you.

I’m mainly developing the game I would like to play myself, as so many before myself have started out to do.

As of this posting the core of the game is finished, the only things left now are a nice Intro, a Tutorial, more Campaign and Free-Play Maps and… well that’s the big thing … the multiplayer server.

The Game itself is inspired by the Walking in Stations Plans of the MMORPG Eve Online but also by pretty much all Sci Fi Movies and Games I have seen, Chess and general Hex-based Strategy games.

I will have to do some server work so I can store a Ranking and Coordinate ongoing games. Right now the competitive nature of the game is already nice against the AI, but playing against other iPhone users should be awesome.

I am envisioning a Multiplayer Ranking System in the way of Warcraft 3. That means Players get Ranks that advance with XP, you get XP if you defeat other players. How much XP you get depends on the rank of your enemies, i.e. defeating a lvl 4 as a new Lvl1 player you should get a lot, while the Lvl4 shouldn’t get that much from defeating a lvl1.

I hope I’ll be able to keep this blog up to date 🙂