Level Counter

Story: 60, Challenge: 0.

Friday, March 22, 2013

A new twist on an old elemnt

After taking a while to clear my mind with some side projects, I've returned to the development of Pachinguys. A second "beta test" session with the kids in my family showed a positive response to the tunnel lines I've added since the last session. Hopefully the level design push will be done soon and I'll have some time to add more graphical enhancements like this. At the very least the plan is to bring the "guys" to life, give them some idle and active animations, and some reactive sound as well.

As the level design process grinded to a writer’s block type halt. I've decided to take a fresh look at my game elements to see what can be improved. The results are: Triggered portals. They are functionally similar to regular portals, but they also have a cover that enables/disables them, triggered according to their color as usual. A covered portal does not react with passing guys at all. And an uncovered portal reacts like a regular portal. A closed green portal can be seen in the picture below.

You may have also noticed that retractable blocks have been graphically changed a bit. This is also in response to some tester feedback (mainly saying the old graphics were too unclear). While the entire sprite scheme will change eventually, it’s still better to have clearer temporary graphics for testing purposes.

Some tweaks to the existing movement engine had to be made to enable portals that were opened when a guy was already on them to function properly, as this situation could not happen with any other block type until now. (Retractable blocks would only alert passing guys to changes in their state when they were above or below them to avoid guys getting "trapped" by retractables opened on them.
These tweaks open the door for other possible block types that may use this interaction type. Which may or may not be used as the creative process and level design continues.

One more element idea remains to be implemented if the current elements are not sufficient to complete my 60+10 level goal. So I'm now confident that the level goal will eventually be reached. As long as work and life distractions stay out of my way long enough.

Friday, February 15, 2013

Bugs in motion

I've spent time listening to some interesting indie game presentations and one sentence really stuck with me: "content is what kills you as an indie". Considering I've spent the better part of my development time on Pachinguys levels. I can definitely relate. Luckily as the effort of level making continues I find myself creating levels that push and abuse the underlying engine. And as a result flush out many new bugs for me to squash. This week saw two "game breaking" bugs fixed. Both relating to the interplay of fans, portals and triggers:

- When stepping off a peg where a) updraft is present and b) a portal is just below the Pachinguy. The Pachinguy now floats up instead of teleporting (see the situation in the attached image).

- If said Pachinguy then hits a trigger from below, and losses his updraft, the trigger now un-triggers correctly (previously the trigger would think it’s still active).


As you can see I've taken the call for harder levels to heart, doing my best to create complex, non obvious levels. So while, yes, content is the major bottleneck in Pachinguys. I'm quite pleased with how it’s progressing. I continue to stand my ground against automated level generation and introducing "just for one level" mechanics. I do believe I will reach my 60-10 level goal without breaking these guidelines. I may choose to introduce one or two new components to the "machine" but as for now the currently available components provide me with plenty to work with.

Saturday, February 2, 2013

Faster level creation infrastructure.

Many technical improvements were made this week. The entire level creation and testing process was streamlined to allow for faster level creation. The level file parser was made a bit stronger and the blog received a tiny addition.

to recall, the way things worked was that the editor ran in debug mode only, dumping its output (the actual level) as a string to the console, where I would copy it and transfer it to the hard coded levels file. Clearly this was very cumbersome and required switching between the editor project and the game project, and recompiling the game, just to see the level in action. Any changes to the level after its initial design were done either by recreating it in the editor or, more commonly, by manually altering the level string, and would again require a recompile of the entire game.

In an effort to make this process more efficient, the editor is now a standalone file. Just small enough to be sent by mail to wherever I happen to be. It now dumps its output to a file. I then transfer this file to a specific folder on my testing device by USB. The game is now able to translate this file into a playable level (in fact, a menu of many playable levels), without needing to recompile. What this means is that I no longer need my development environment to create and test new levels. Wherever I have a computer with internet access and a USB cable I can create levels. (Of course, I would never create levels when I should be working, that is not the point of this update at all).

Levels created in this way are not classified (story/challenge) and instead exist in the new "testing" level menu. When I'm happy with the new design, I transfer the complete level to the hard coded levels file (either the story levels file or the challenge levels file). Recompile, and only then is it considered a part of the final game. The entire level testing infrastructure would be removed from the final version.

While I was enhancing the game's level file parser to handle the new external file, I took some time to strengthen it a bit more. Now level files can have line comments (any line starting with an * is considered a comment line). Also a level string no longer has to define its par (how many guys are required to finish it). If a level does not specify its par, a very large default par is used.

One of the newly designed levels

The next step in this process would be to enable the editor to read in a level file to allow for editing of preexisting levels. This step would be rather time consuming so I'm delaying it for now. When beta testing of levels comes around and changes to existing levels becomes a common activity I'll likely have to get around to it. But, for now, the system is good enough.

In addition to all that, several new levels have been designed. And a new level counter was added to the blog. I will update it from post to post to reflect the level design progress. So stay tuned.

Saturday, January 26, 2013

Level count milestone and some design philosophy

Today marks a milestone in Pachinguys development. It has come a long way from the humble PC prototype it was just half a year ago. The prototype had three elements (pegs triangles and triggers). The game now has:
Pegs, triangles, triggers, bridges, retractable blocks, portals, fans, and upside down triangles

The prototype had one level and no menu system. The current level count stands at 28 story levels and 2 challenge levels, which brings us to a grand total of 30 levels! This is still far from the 70 levels total I want for the final game (60 story levels, 10 challenge levels). But the game is definitely progressing, and progressing well.

When I started working on Pachinguys I didn't know if I could create enough content (levels) without breaking my design guidelines. I believe I was (mostly) successful so far. My level and element design guidelines are:

1) No randomness. Every outcome should be predictable (once a mechanic is learned). In theory, if you know how the mechanics work, you should be able to solve the level in your head before proceeding to implement your solution in one go.

2) No reflexes. Every level needs to be solvable (with the minimum number of guys used) regardless of the players "speed". Levels that do require timing to solve must be forgiving in the sense that they do not require that the player reply the entire level just to get to the timing based part again. Levels that do not follow this guideline are currently considered challenge levels.

3) Maintain the pyramid shape. I believe a game should maintain a constant look and feel, and the general triangle shape of levels is part of that look. While I do at some levels add elements outside of the pyramid, I never remove any part of the pyramid. And I try to keep additions to a minimum.

4) a story is nice, but game play comes first. Many cool element ideas were scrapped because they contributed too little to game play. (Jet packs, slingshots, traps, to name a few). If it doesn't provide an interesting addition to the puzzle, it isn't in the game.

In general I strive to make this game as pure a puzzle game as possible. But the main intention is to create a game that is easy to learn and fun to play. After all, that's what games are all about.

Friday, January 18, 2013

Level sets, level unlocks, and persistant data

Much has happened to the good old levels system. In the last post I've mentioned creating the first of (hopefully) many challenge levels. To allow for different kinds of levels a new system was put in place. The main menu now enables you to choose the type of level you want to play (currently only story (regular) and challenge levels are available). As well as do some other stuff (more on that later). Once you choose a level type, the old level select menu pops up. However it is now specific to the type chosen and shows only those levels.

The old level select menu has also been improved. It now locks levels that are unimplemented or not yet unlocked. A level is unlocked by beating the previous level. (Naturally level 1 of any type is never locked).
This is all well and good. But when the game was closed it would "forget" which levels were already unlocked and lock all but the first level again. in comes androids shared preferences, which essentially act like a simple data base, allowing for storing pairs of string keys with primitive (int, bool, string) values. So now I have a simple data base of which level was unlocked, which I read to create the level menu. Naturally this data base is updated every time a level is unlocked. The same infrastructure will be used in the future to maintain the scores achieved on each level.

This whole thing of course makes it somewhat difficult to test new levels, so an "unlock all" button was added to the main menu to simplify testing. And a "clear data" button was added for testing as well. It completely removes the database.

(Initially all levels are unlocked -> After solving three levels -> Cheat by clicking unlock all in the main menu -> All implemented levels unlocked).

 A few other things were done, a new story level was created bringing the total to story: 23 challenge: 1. The blog was slightly redesigned to be easier to read thanks to some constructive criticism I received recently. So the lesson here is, let me know what you think, it really helps.

Saturday, January 12, 2013

More levels, bug fixes, and components library link

I've spent most of my time lately on creating new levels. The current level count now stands at 23. Level 23 marks the first of the "challenge levels". It requires expert timing and skill to solve (took me about 10 tries to get it right!). The plan at this point is to create several challenge levels based around unifying concepts (timing, specific elements, etc) and make them optional in the level menu. Every challenge concept would have its own level order (so solving Timing1 would be a prerequisite to playing Timing2, but not for playing any non timing challenge level). This all depends on my ability to create enough interesting challenge levels so it may not end up on the final version.

Fans have been giving me a lot of trouble lately, behaving in a seemingly random fashion. But I believe I've finally resolved the issue. The problem was not in the fans at all! It was in the way in which levels are translated from the levels file. I had now made sure all the blocks (elements) are in place before I initialize them (start up fans, pull up bridges, etc). So now all elements should behave as expected.

in the previous post I mentioned I've been working on a component based java architecture. I'm proud to say it is now done, complete with example components and test cases, and available on github. The repository contains the architecture in jar form (in the jars directory) and the testing and usage examples eclipse project. Feel free to browse and use it as you wish.