Posts

Showing posts with the label Development

How to use Blender as a Box2D Platformer Level Editor [Tutorial]

Image
Hey guys so you want a level editor but don't want to build one yourself right? Who does? You basically need to create a entire tangential project, with full GUI editor and undo tree etc. Unless that's a goal of yours (selling etc?) you probably want an easier solution. Well folks, look no further than your good friend Blender 3D. The same tool you use for modeling crazy cartoon knights swinging swords and whatnot, can be your level editor for your 2D game. A Plan So how do we do this? What do we need? We need a output format that's easy to parse. We need to decide on attributes that we can assign meaning to (for box2D and our game) The texturing and vertex placement etc, comes for free since we're using a 3D modeling format :) The OBJ file format. Why OBJ? This is super easy to parse. You could use another format, if you're already using a parser (I recommend ASSIMP :) ), but for this tutorial, I'm going to use OBJ so you ca...

How to render Parallax Background and Foreground Layers Completely in the Shader [Tutorial]

Image
EDIT Oct 16 2014 : Changed precision to lowp for fragment shader. Consider using this as a default for mobile, unless you really need something better.  I saw a 2x speed increase on Kindle by doing so. Hi all! Here's a quick little diddy for anyone curious on a quick way to get a layered effect in your 2D game (note: we are still using 3D vertices): I did a little more progress on Hoarder Monkey   and I am happy to have parallax backgrounds working all in the shader and in 1 draw call per object type (static VBO, dynamic sprites, Semi-transparent VBO, semi-transparent sprites).  :) The background scrolling is all handled in the shader, and works surprisingly well.  I also do some color tweaking to make things a little darker in the foreground and blue-ish in the background: Notice the closest graphics are darker Notice the background objects are a more blue/white hue. In case your curious the shader code is pretty simple (as it should b...

How To Set Up Your Game Event Queue (Threaded) [Tutorial]

Image
Hi all, Finally back with a simple, but hopefully helpful, tutorial for you all to get an working event queue in a threaded environment.  In this case I will be using Android C++ and JNI as my playground to demonstrate. What is an event queue An event queue is a list of events that has occurred since your last game loop iteration.  Possible Events are: Button presses on game controllers Screen touch events (press up/down, multi touch, etc). Keyboard events So what is the point of this anyhow?   Many times events will occur in the middle of your game loop, asynchronously.  In Android, they occur on a different thread by default, usually called the "UI thread". If you process them as they come in on your "UI Thread" you could end up with some nasty concurrency bugs and crashes due to processing the event (in your game etc) right while the game loop thread is updating the same data. This leads to some epic head scratching and lovely...

"Hoarder Monkey" Coming soon!

Image
You're a Monkey with a serious collecting problem!  Hoarder Monkey is a fresh take on action platformers that melds tilt action rolling movement, with Donkey Kong style action mechanics, with plenty of goofy humor and surprises. Can you collect all your  precious  missing junk before time runs out?  Beat your friends, impress the ladies... be *that guy*! Forget your 12 step programs, play Hoarder Monkey and indulge in all your OCD fantasies! Insane enemies, Rabid Squirrels and Monkey with a trash bag strapped to his back!  It has everything! This guys didn't satisfy his collecting urges by playing Hoarder Money! Don't be this GUY! I mean  common... Rabid squirrels and such! "It's a squireeel! It's dead!".  Well nearly.. anyhow.   So yeah, that's it for now, still working on levels features and all that Hoarder Monkey specific Blog on the way! Coming soon to:...

Spell checking on your Git commits with VIM!

Image
Hey all!  This is a quick tip for all you guys using git version control, and the command line.  Have you wanted to get spell checking into a basic editor but wasn't sure how to get it in vim automatically (but maybe you don't want to enable it in your ~/.vimrc for everything)? Lucky you, I have an easy solution.  To enable spell checking in vim for all your git commits, it's as easy as one command.  In bash type (or copy paste, I won't tell anyone you dirty cheater): git config --global core.editor "vim -c \"setlocal spell spelllang=en_us\"" That's all there is to it.  All your commits on all your projects will now use vim with spell check on by default.  That's US English of course, for other languages please substitute your language type. To get help on spell just type in vim: :h spell Here's some basic commands to get you started : ]s next spell error [s previous spell error zg add word to spellfile (corre...
Want to help me make Text Message Scheduler work for you?  Please join the discussion on improvements on Reddit! http://www.reddit.com/r/Android/comments/1crmno/can_i_get_feedback_on_my_text_message_scheduler/ Thanks Guys!
Image
Hey guys, take a peak at my new Text Message Scheduler app (BETA) and let me know what you think. https://play.google.com/store/apps/details?id=com.razzlegames.textmessagescheduler "Remind your husband to deposit that check after work! Ask your wife to pic k up some eggs after Billy's soccer practice! You won't have to remember, just schedule it with Text Message Scheduler. Text message scheduler will allow you to send a text message in the future when ever you want. 1 hour from now a few weeks from now, 10 years from now, TextMessageScheduler doesn't care! Text Message Scheduler is so easy to use too."