Golden Hammer Software is a Boston-based game company mostly focusing on mobile games. Our cross-platform game engine supports OSX, iOS, Android, and Windows. Our games are Big Mountain Snowboarding, Scribble Worm, and Castle Dungeon.
Thursday, October 18, 2012
What happens in the final stage of development?
Done
* Fix/check pin sound modulation
* Fix gray text
* Fix minimap arrows
* Make interrupt pause removal not add to the gui stack
* Fix touch input for throwing the ball
* Fix ad spacing issues with new admob
* (No repro) Fix sound delay
* Icons
* Sidebar pause menu
* High/low graphics settings with lower res reflection
* Prevent gutterball sound in the ball pit
* Tweak gutterball sound zone, possible to hit without leaving the lane.
* Prevent gutterball sound from continuing to play if you skip
* Portrait
* Make pins heavier
* Make a 4 player game, exit the app, restart the app, start a new game with 4 players without clicking any add/remove players buttons. Scorecard only has a player name for player 1.
*Play halfway through a game. Going back to the main menu and starting a new game does not reset the scorecard.
*in trick shot mode, pins sometimes do not disappear from the alley (may be related to skip button in some cases)
*in trick shot mode (at least), pins sometimes are not fully stabilized at the beginning of a ball (may be related to skip button, less certain in this case) (may or may not happen only between balls in the same frame)
* Stop the gutterball sound when the ball hits the ballpit
* Have two players with different balls. Bowl a trick shot game with second ball. Exit. Start a new non-trick shot game. Player 1 uses player 2’s ball.
* Throw a ball down the lane, wait for it to hit the ball pit and immediately bring up the pause menu, go to ball select, wait for the skip button to show up, and then go back. You will get stuck on the skip screen.
* In the store, select a ball (other than the 8lb and 44lb balls) and resume the game. Go back to the store and select the ball that has the same weight as the previously selected ball. Note that the rotating display ball model has not changed. This bug is probably related to the fact that the two balls share the same ball model. - Entity properties not properly being applied when a duplicate mat is in the scene.
*ball changes color visibly in the back of the alley when the player for the next ball is using a different ball color
* Make a low graphics option that doesn’t draw at full screen
* Ball textures
* Second page of balls
* Make ball properties do stuff (spin, speed)
* Modify pin icon to include a dollar sign
* Make sensitivity slider
* User was having trouble with the input being too sensitive to use. The arrow may be resetting too quickly, making spin too hard for new players.
* “Press any key to skip” -- should say “Press a key or touch the screen to skip.”
* Make trick shot alley screenshot be of trick shot alley
* Make starting pins be 0
* Remove framerate counter
* Link to tutorial from pause.
* “Draw an arc” in tutorial -- fix too-literal wording
* DDS the ball textures and ball icons
* Remove IAP page from win8 menus
* It appears to be possible to make the guide arrows disappear in the tutorial. Repro steps unknown.
* Implement openURL
* Text background during tutorial has a little white line at the top
* Ball pricing
* Final score gui was only showing first 8 frames, and no player name.
* It is also possible for a player to be using one ball but show a different ball’s icon. I am not sure what the repro steps are yet. (might be related to per-frame per-ent stuff in the shader)
* Store screenshots
* Promo images
Saturday, April 28, 2012
Porting to the Blackberry Playbook
Sunday, March 11, 2012
Lights-out mode in Android
As I noted in the last post, Google and players like it when you use the "lights out" option to hide the status bar during games. I spent a couple hours today figuring out how to do that.
1) Wrap all of this code in a check to see if we are on Android 3 or higher so we can still run on 2.3.
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
2) Find the right view. We create a GLView in our startup code, so this part is easy for us. Otherwise you'd want to add an android id to the top view in the layout file, and then use findViewById to find it.
(in layout definition) android:id="@+id/RootView"
(in startup code) View root=findViewById(R.id.RootView);
3) Toggle the visibility flag to SYSTEM_UI_FLAG_LOW_PROFILE
view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
4) Set up a visibility listener to re-hide the menu bar after a delay when it becomes visible again. Otherwise when you touch the bar it will stay visible forever. We add the delay in because things go wonky if you rehide in the unhide notification.
view.setOnSystemUiVisibilityChangeListener(
new View.OnSystemUiVisibilityChangeListener()
{
public void onSystemUiVisibilityChange(int visibility)
{
if (visibility == 0)
{
Runnable rehideRunnable = new Runnable()
{
public void run() {
view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
}
};
Handler rehideHandler = new Handler();
rehideHandler.postDelayed(rehideRunnable, 2000);
}
}
});
Wednesday, March 7, 2012
Tips every Android developer should know, or things we're doing wrong and need to fix in our Android builds.
A couple Google engineers, Dan Galpin and Ian Lewis, gave a talk at GDC this morning on things people do that prevent their apps from getting featured. Here are my notes on what they said.
1) Don't run in compatibility mode. Google hates the menu button on newer Android devices, so set the target SDK version to the newest (15).
2) Games that use the lights out menu option are cool. This is View.Status_Bar_Hidden.
3) Don't override the basic button behavior like volume or home or power. The back button is fair game though. Back should be treated as the escape key and not a quick exit button because it is easy to accidentally press it on honeycomb and ice cream sandwich.
4) Don't use a "do you want to quit" button when hitting back from the main menu. Just exit.
5) Don't play music on the lock screen when coming back from sleep. This one has driven us nuts trying to figure out. You have to overload onWindowFocusChanged as well as the sleep functions, and they can be called in any order.
6) Gracefully cleanup your OGL contexts.
7) For in-app purchases, don't assume your app will be open when the confirmation comes through.
8) Always have a tablet promo graphic. They scale this down to use it for feature spots on phones. This is the big banner that shows up when viewing the game on the web or on a tablet.
9) Localizing the market text is recommended, with the languages EFIGS-CJK.
Tuesday, February 28, 2012
Black bars on the Kindle Fire
public void onSurfaceChanged(GL10 gl, int w, int h) {
if (!mWasInitialized){
// game init
mWasInitialized = true;
}
else {
// resize the game window
}
}
1.30.1 has been uploaded and fixes this issue. I would update the game description if Amazon allowed developers to write their own promo text. Instead the best I can do is add a discussion at the bottom of the page with the workaround and wait for patch approval.
Monday, November 14, 2011
Apple and non-public APIs
We found that your app uses one or more non-public APIs, which is not in compliance with the App Store Review Guidelines. The use of non-public APIs is not permissible because it can lead to a poor user experience should these APIs change.Step 1: Find in files
We found the following non-public API/s in your app:
appName
setAppName:

Additionally, one or more of the above-mentioned APIs may reside in a static library included with your application. If you do not have access to the library's source, you may be able to search the compiled binary using "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods. These techniques can help you narrow down where the problematic code resides.
otool -ov ScribbleWormHDstrings ScribbleWormHD
Saturday, November 5, 2011
Design Patterns in GHEngine, Part 1
One of the major design goals in our engine is to have as small as a codebase as possible. To do this, we want to re-use as much code as possible. A Golden Hammer in programming is a tool that gets overused and applied to many problems even when it is not a good fit. We have a small set of design tools that are so generic we can use them in all sorts of places. It's a good model if you can have a unified design: avoid duplication by extracting the shared work and making it available to all users. The danger of course is we can end up with the bad definition of golden hammer if we're not careful.
The Controller
class Controller {
virtual update(void);
virtual onActivate(void);
virtual onDeactivate(void);
}
A Controller is something that updates. Our renderer, physics, and input handling are controllers. We can store these controllers in a sorted list for updating, and we can dynamically add or remove controllers on the fly. Instead of having a big update function where we say "do this, then do this, then….", we have a single function that looks like this:
void runFrame() {
for each Controller, call update();
}
Note that Controller does not take any arguments at all. Once you start adding arguments, you start making assumptions about all possible Controller subclasses, and that list can grow to the point where you are passing a lot of stuff that most controllers don't care about. If a Controller needs to access something like the current time, we pass in a time value reference in the constructor.
By having this dynamic list we can avoid iterating over objects that don't need to do anything. If an entity like a player needs an update it can add a Controller to the list. If an entity like a tree does not need to do any work, it can avoid the list. Just touching the memory of each entity in a large world can become a serious performance issue even if no work is being done.
State Machine
class StateMachine {
addTransition(trans, state);
removeTransition(trans, state);
setState(state);
}
class Transition {
virtual activate(void);
virtual deactivate(void);
}
A StateMachine is used to change behavior based on whatever influences we want. Instead of defining each state as a class, we define a state as a set of Transitions into and out of that state. The most common Transition used is a ControllerTransition, which is used to add Controllers to the update list. An example Transition is a MusicTransition, which plays a song while it is active. We can create one of these and add it to the main menu state, then whenever the main menu is shown music plays.
class MusicTransition : public Transition {
activate() { start playing music }
deactivate() { stop playing music }
}
Another use for StateMachine is players. We can use a ControllerTransition to have an input handler active while the player is in the alive state. Then when the player dies we shift him to the dead state, and the ControllerTransition removes the input handler from the update list.
Events
class Message {
identifier messageType
payload messageArguments
}
class MessageListener {
virtual void handleMessage(Message);
}
class EventManager {
addListener(MessageListener, message identifier);
removeListener(MessageListener, message identifier);
broadcastMessage(Message);
}
Events are something that happened, that something else cares about. They are an alternative to having a bunch of different managers that know about the inner workings of some set of objects. We also use them for communicating between threads and for sending information over a network, as they can be stored up and sent later. The real flexibility comes into play when we start data driving message loading, adding listeners that change state to state machines, and allowing out GUI to send loaded messages.
