SlowKoala

Search
Skip to content
  • Blog
  • Penguin Blocks
  • Tutorials
Moai, Programming

Handling User Input – InputManager

March 20, 2013 Bernie Leave a comment
There are two ways to handle user input in Moai - by polling or registering callback functions.  I'm going to focus on polling for now, since that is what I am using.  Moai provides some ways to check for input through the MOAIInputMgr.device and it's properties.  Depending on your device/host, there will be different properties … Continue Reading ››
Moai, Programming

Managing Game State – SceneManager

March 16, 2013 Bernie Leave a comment
We have a bunch of scene definitions now, but how do we keep track of them and transition between them?  A solution is the SceneManager class, which maintains a stack of Scenes and handles adding/removing/updating them.  Here's what the stack might look like, with each layer being a Scene: sm_exampleContinue Reading ››
Box2D, Moai, Programming

Defining Game State – Scenes

March 16, 2013 Bernie Leave a comment
Now that we have a lot of the basic pieces in place to make a simple game, we need to think about how to keep track of game state.  For example, how do you know to start with a start menu?  How can you transition to the actual gameplay?  What if user wants to pause … Continue Reading ››
Moai, Programming

ResourceManager – Keeping Track of Decks and Props

March 12, 2013 Bernie Leave a comment
Remember in Moai, you think of graphics resources in terms of Decks and Props. Decks are the actual definition of the resource - the vertex locations, texture data, etc. A Prop is a reference to a Deck and any information used to actually draw an instance of it - the actual location or any other … Continue Reading ››
Box2D, Moai, Physics

Sensors in Box2D (or how to make a basic platformer)

March 6, 2013 Bernie Leave a comment
After playing around with Box2D, I tried to make a simple platformer. After setting up a static body to represent the ground, and a dynamic box to represent the character, I ran into a problem - how do you know whether your character can jump? Essentially you need to know whether he is standing on … Continue Reading ››

Posts navigation

← Previous 1 2 3 … 5 Next →

Writing games in my spare time…

Recent Posts

  • Aliasing on Sprites in Unity
  • Switching over to Unity
  • Suggestions for topics?
  • Maintaining Fixture Lists for Box2D Bodies
  • Preventing Duplicate dofile() Calls in Lua
  • Handling User Input – InputManager
  • Managing Game State – SceneManager
  • Defining Game State – Scenes
  • ResourceManager – Keeping Track of Decks and Props
  • Sensors in Box2D (or how to make a basic platformer)
  • Handling Collisions in Box2D
  • Box2D Basics
  • Moai Main Event Loop
  • My Proposed Lua Style Guide
  • Inheritance with Lua
  • Classes with Lua
  • Lua Basics
  • Basic Moai Program Example
  • Interesting Links
  • Getting setup with Moai

Recent Comments

  • Bernie on Getting setup with Moai
  • Paul K on Getting setup with Moai

Archives

  • January 2014 (1)
  • November 2013 (1)
  • May 2013 (1)
  • April 2013 (1)
  • March 2013 (6)
  • February 2013 (12)

Categories

  • About
  • Box2D
  • Lua
  • Moai
  • Physics
  • Programming
  • Uncategorized
  • Unity
  • XNA

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress