Sunday, January 29, 2012

Bad luck

Disk crashed, must spend time fixing computer instead of coding game :(

Wednesday, January 25, 2012

Wizznic! for Nokia N900/Maemo5

Some awesome person, Aapo Rantalainen have worked on Wizznic! And ported
it to the Maemo5 platform, and in particular, the N900 phone. This looks really
promising, and there's even touchscreen support there, which will be really sweet
when I complete my work on making the whole UI pointer-aware :D

The code from Aapo will be merged into the Wizznic! master branch as soon as I
complete the UI work. :)

Here's the announcement.

The code is here, I think it was done on windows since the patches are a bit off,
which means a some manual labour for me, but never the less, this is an amazing piece of work which is greatly appreciated :)

And last and most awesome, a video of the thing running! :)

Monday, January 23, 2012

More Wizznic :P

Been hacking a bit more on Wizznic, finding the "angle of least change" in order
to turn the text/arrow keys based menus into something that also works with a mouse-pointer..
I made a nasty hack that I quite like, and that I suggest you think about twice before doing..
Every time I call my "txtWrite" function, that function will now update an internal variable containing the "box" size of the text..
So, right after a call to txtWrite, if I do getTxtBox, I get a pointer to this rectangle.
txtWrite("Some text", some, position);
if ( isBoxClicked( getTxtBox() ) ) { //Box was clicked }

In other news, I was briefly hospitalized this thursday, and thus, wasted a weekend of coding, so wizznic release date is pushed a week, meaning there's also a slim chance my gfx guy have the time he needs to finish another theme :)

Saturday, January 14, 2012

Wizznic, Content and the big 1.0.

  1. was to go through the 4 subdirs, having the first "map" logically to "1,2,3,4" and the second to "5,6,7,8" and so on, this way, we would only have to worry about sorting a chunk of 4 levels at a time, which is a lot easier than to inspect 20 levels as a whole.

Sunday, January 8, 2012

More Wizznic! hacking! :D

I've been giving Wizznic some attention lately, and gotten some nice things done, I feel sharp :)
I added a little cursor inside the cursor to give the user a better feel of where the actual cursor is, it feels right :)
I fixed a long standing bug that made the cursor sometimes "jump" around when moving a brick with a brick on top of it, this happened because I have this lock mechanism, but I forgot to "unlock" the bricks after un-grabbing them :P

I also rearranged the way levels load graphics, walls are one part, "brick die" animations is one part, and the rest of the tiles are one part. This means that for example, die-animations are no longer dependant on the name of the tileset, walls are no longer dependant on the name of the tileset. This makes it possible to have several wall-sets in (or tile-sets, or die-animations or any combination hereof) in a theme.

I also solved an issue that have annoyed me for quite a while, that the "magnet/glue and one-way only" tiles were not treated as walls, even though they are basically that.. Now they are, which makes the wall-tile-selection a lot prettier to look at visually, they are also overlaid on top of the walls, making reuse easier (but optional).

I also noticed that some players had trouble detecting (yes, people are machines) the edges of the walls, making them believe that sometimes they were able to move bricks, even though there were a wall there, other times they would not move bricks to obvious places, because they believed that there was a wall (when, in fact, there was none). I have partly solved this by making the edges of the walls a little brighter. In addition, I am thinking about adding some more details to the inside of the wall tiles, tough at this moment I don't know what it would be, maybe my graphics guy have an idea and will do this? :D

And here's a little video showing those new cool things, the code is not on github yet, I still need to convert all the levels..

Friday, January 6, 2012

Wizznic! Touchscreens!

So, I hacked around Wizznic a bit last night and got some pretty decent mouse/touchscreen support going, this is pretty usefull on wiz, and if there's a touchscreen on the PSP I could imagine it'd be nice there too..

Anyway, it also works on PC.. I', not done with this yet though, if you wanna try it, you'll have to compile the source from github.