brandontreb.com Tips And Resources For Software Consultants

Great Introduction To Lua

(click the post title)

I have been using lua in my iOS applications for some time now. This tutorial provides a great introduction to a scripting language that most developers are very curious about. I really suggest spending a few minutes checking it out.

Why you Should Check Out Unity

A while back, my buddy seantron showed me some of his 3D games he’d been working on including this one. My initial reaction was “how the heck did he get the chopps to do that?”. While, Sean is an incredible developer with a ton of creativity, doing things like loading models, texture mapping, or even basic 3D projects are flippin hard.

A while back I tried my hand at 3D and made sort of a basic Minecraft style game from scratch using OpenGL ES. Let me tell you, it was brutal (and I have been coding for almost 10 years). This project took me a week or so to ramp up, get basic cubes and textures going and a simple first person view.

Enter Unity

Sean had mentioned to me that he used this 3D engine called Unity to create his games. While I had tried XNA, I had never heard of Unity and figured it was similar (basically a framework with some convenience methods for loading models, mapping, etc…). Boy was I wrong…

Unity 3D is more than just an engine. It is an application that allows even the most novice of developers to create beautiful, rich, 3D games. I’m serious. Check out this demo below of an app I made in unity in about 3 hours using this tutorial. The crazy part is, I wrote almost no code. Much of the interactions and game were developed using drag and drop and free assets.

Link to my awesome game

Getting Started

I was very reluctant to learn Unity at first as the interface appears to be a bit daunting. However, once you check out a few tutorials, it becomes second nature. Here are a few places to get started:

InfinitAmmo’s Unity 3D tutorial series – This was where I first began. He does a great job at going over the basics of Unity while keeping things interesting.

Getting Started With Unity on Active Tuts+ – This is where I made the game you checked out above. Take an hour and do the first in the series, you will be very surprised with the outcome.

Unity 3D tutorials – Unity has a wealth of information and demo projects on their website. They come with the source and comprehensive PDFs detailing various aspects of each of their demo games.

After completing at least the top two series’, you should have enough knowledge to begin hacking on a game of your own. I know that I do :)

Conclusion

I hope this has been enlightening and I really urge you to check out Unity.

Happing Coding!

Unity 3D’s Website

This post is part of iDevBlogADay, a group of indie iOS development blogs featuring two posts per day. You can keep up with iDevBlogADay through the web site, RSS feed, or Twitter.

I Suck At Blogging (Lately)

OK, so the title isn’t entirely true (I have maintained quite a few blogs in my day). But, one thing is for sure, I have sucked at blogging lately. So much so, I just had to think hard about having to bold lately using markdown in the previous sentence #meta.

Burnout

I was blogging very consistently for the Envato Network on their Mobile Tuts Plus as well as on iCodeBlog and here. Eventually, I got burnt out and gave up blogging on every blog (for the month).

What happened was, I was blogging to make money (Envato pays $250/post!) and no longer for fun. This sucks and I was missing deadlines and writing crappy content which needed much revision.

New Plan

Write here only (for fun!) and infrequently on icode if time permits as I can do that during work time 😉 That being said, expect to see more content here for better or worse. Once a week is the new goal.

Shutup

That’s what you are saying to me. I hate these “Sorry I haven’t been around in a while. I promise to post more” posts that are usually the last posts on a blog for like 5 years just as much as you do. Let’s hope that’s not the case here. You will just have to trust me and subscribe.

Also, I have a sweet new theme from Jekyll Bootstrap.

Pocket MUD Pro Released + Promo Codes

I am very proud to announce a brand new version of my Pocket MUD Pro application for iPhone. I have been working very hard to make a perfect MUD client that is suitable for hardcore mud players, visually impaired mud players, and casual mud players.

Here are some of the features:

  • Support for all orientations
  • Full ANSI color support
  • Dedicated prompt
  • Zoomable Text View
  • Perfect rendering of MUD text (check out the maps)
  • Very fast
  • Hides Telnet codes from the user (unlike every other MUD client)
  • Autoconnect on startup
  • List of MUDS
  • Favorite List
  • Unlimited Command history
  • Quickly cycle through command history
  • Triggers using the lua scripting language
  • Text Command Alias
  • Lua scripted aliases
  • Timer Support
  • Background support. Stay connected for up to 10 minutes after you close the application.
  • Support for multiple commands separated by semicolons
  • Comes packed with a list of some of the most popular muds
  • In-App Documentation of triggers and aliases
  • Ability to play sounds when triggers fire
  • Ability to gag extraneous text, which is extremely helpful for visually impaired players.

Promo Codes

  • PXYTRKLTWL46
  • KTXAAMYNYXPP
  • 443433YNJX4E
  • 9K99KJWRXNYT
  • W44YHPHLRFMT
  • 4HYHLEFXYYN7
  • 4HK74JLMMHAA
  • KX6XJ79TLWFP
  • 437YTX9KLEN9
  • 7YAMYF4EYALF

Please leave a comment here if you use a code to notify others that it’s been taken

Download it here

I’d love to hear what you guys think about the app.

Happy MUDding!

Vim For iOS Is Incredible

I used to be an Emacs guy and would battle to the death on the war between Vim and Emacs. It wasn’t until a coworker of mine sat down and really showed me just how cool/simple/powerful Vim can be. Just using Vim is a new adventure every day and has really improved my productivity. I now use it to code, blog, and even jot down quick notes.

Last week, I saw on Hacker News a link announcing Vim has been ported to iOS. I have spent a week or so with it and can honestly say the port is almost perfect!

It has most of the major Vim features and commands including:

  • Automatic indentation
  • Visual mode (block operations)
  • Language-aware syntax highlighting
  • Integrated scripting language that lets you extend functionalities
  • Macros recording and playback
  • Markers management (to quickly move around the edited file)
  • Multiple clipboards

You even have access to the config file to remap keys and define your own custom macros.

There are a few features that would make this better on mobile however:

  1. Dropbox Support – Currently you must use iTunes to work with Vim documents on mobile. There needs to be an easier way to share these.
  2. Keyboard bar – Since you have to switch modes so frequently and there are some keys you type often ( “:” ), it would be nice to have quick access to these.
  3. Plugin support – This is an Apple limitation :(
  4. NERDTree – The file browser that’s built in doesn’t work too well.

With Vim mobile, you can now look even more nerdy on your iPhone 😉

Download Vim For iOS