Category: Code

Things and Things and More Things

Lets get this in order.

Two chapters and 4 exercises left in the Java textbook, kinda happy to get to nearly get to the end of it. Though it is all Swing GUI stuff and I always find that kinda tricky. Sooo many objects, so many lines, so many odd little settings and things to remember.

I made a wallet. It has constellations on.
Constellation ZIppy Wallet
Modified the Riko doll. I’m still not happy with it. It’s missing something but I can’t quite put my finger on it.

Diddy Riko Revisited

I’ve been watching too much anime. Then again, there’s nothing on so maybe that’s okay. With Game of Thrones coming back and some random thing on Channel 5 about fairytales, maybe that’ll change. I still need to finish Battlestar.

A wandering Timcanpy appeared. It was cute.

Timcanpy Plush

An amigurumi dragon stopped by to say hello too. He was resized, but he didn’t seem to mind. He now lves on my desk, amongst other things.

Cute Little Amigurumi Dragon

I got one of these, I thought they were cool:

Baby Angel Cat Qee - Blank

I need to design it. You can paint them with acrylics but seeing as I suck at painting I think paint marker-pens are the way to go.

A friend sent me one of these. It was also cool:

Tea Mug

The fish got new plants. The just-a-bundle-of-leaves fern was a little disappointing, but there’s some baby ones growing off it so maybe those will survive.

New Plants in Fishtank

Yeah… this is totally the wrong kind of camera for this.

I had a go with my new Studio pencils. Can’t say I’m used to them yet as the drawing I’m trying them out on is allllll black so half of the pencils are from a different range, but it’s nice to have so many shades of grey to work with.

Pencil Test - Allen Walker WIP

The polychromos are nice, they cover big areas well and the colours come out darker than the harder Derwents. But then, that’s not what I brought the Derwents for.

I’m on holiday at the moment. It’s nice to have time off work, finding places to go is somewhat difficult. I have plenty of things to do here but it kind of feels like killing time, and that’s no way to spend a holiday. I won’t sit indoors the whole time.

I need a new bag. I can’t find one I like. I considered making one, though I’m not sure where you get the thick kind of fabric that makes messenger bags work from. All I’ve found so far is cotton, and that stuff isn’t much good when it comes to handling book-weight.

Catchup: Code

I mentioned in the last post there were 2 large things I’d been working on recently. Since February I’ve been busy trying to get my life back on track; I’ve felt a bit lost since leaving uni, struggling to find work and I kind of gave up on myself for a while. But I can’t live with that outcome. Specifically I’d like to get back into software development. I’ve dabbled with various languages and bit of web dev stuff on and off over the past few years since graduation, but this time I’m taking a visit back to where it all started; Java.

I’ve been working through the exercises in a textbook I found online, Introduction to Programming Using Java . It’s probably the equivalent of 1st/2nd year stuff but I feel that’s what I need right now. I need to stop taking the skills I have for granted, it’s one thing to always look for new things to learn but I have a tendancy to become overwhelmed by the volume of stuff I don’t know while thinking the things I do are insignificant and not worth taking credit for. Somewhere wrapped up in the last 10 years I picked that thought up and I haven’t been able to shake it since.

So back to basics. Some of the excercises I found really easy, so that’s reassuring. Not that I want to develop an ego either, there are others that I’ve struggled with. The Gomoku game in chapter 7 took me a whole day to figure out, and they provided the win-checking algorithm in the question so it really was just GUI layout and program flow stuff. I got there in the end, amidst much swearing and blank looks of confusion when I tried to handle too much of the problem at once instead of breaking it down.

But I guess this is that thing that we call “practice”. I can tell to myself you should know this stuff by now, 3 year course, yaddayadda but at the end of the day who learned anything by telling themselves off for not remembering it? I’ve started to forgive myself a little. It’s a habit that’ll take a while to shake, but it’s a start.

My biggest enemy is time, it’s taking a while to get through fitting this in around a day job . I’m on chapter 8 now but I imagine it’ll be a few more months before I see the back of the book.

In other java-related news, in March Brickfall got a Prehistoric makeover

Prehistoric Brickfall - WIP Screenshot

Yes I know I just made it look pretty, but it was a fun train journey home sketching that lot out. Not that it’s finished yet, it must’ve been a late night when I last put it down as there’s no way I’d let an ugly white pixel cutout mistake like that get past me usually. I’ll stick it up in an applet when I get it running properly. With 6 chapters of exercises to work through it might be a while though…

Why dinosaurs? Well it dates back to another code project I was working on in a few years back that never saw the light of day. I had a go at developing for the Nintendo DS, using the DevKitPro/libnds toolkit libraries that some bright sparks built so they could make their favourite toys do things they usually wouldn’t. And that game was Prehistoric Rebound

Prehistoric Rebound - WIP Screenshot

Or it would’ve been, if I’d ever finished it. For me, the lure of completing a project usually lies in its end use, and the thought of building a game which (let’s be honest) no one will ever play kind of made me lose interest and turn my attention to other web development things. Rebound is built in C, while it tastes like Java it isn’t all that familiar to me so it took a lot of work to get it into the state it’s in now.

I got the ball bouncing around and the bats colliding and then lost it somewhere around getting the ball to travel across both screens. I eventually found out the answer. The DS handles the contents of both screens separately so has a separate memory bank of sprite data for each. It’s impossible to pass one sprite between the two screens; instead it has to be stored in memory twice, once in each bank, and its’ visibility toggled as necessary to make it look like the sprite is passing from one screen to the other. But I never went in to finish that part or the scoring display, and it has gathered dust ever since.

That still didn’t answer the question “why dinosaurs?”. Easy. Because dinosaurs are just awesome.

Aside from continuing with the Java stuff, my next code adventure will be overhauling the image gallery into something that properly handles noscript, rather than the hack I chucked in at the last minute which looks like a total mess when the page is running slow. Maybe something like Lightbox.

Java BlockGame: WIP

BlockGame - Progess Shot 1
The blocks, they fall!

Handles collisions, rotations, keyboard input. Currently it’s dropping a few keypresses so I need to take a look at that.

* Disappearing lines and levelups
* Game Over / restart state
* Scoring panel, including nextblock lookahead
* Oh, and don’t forget to redo those edge wall graphics…