The blog has now moved!

Saturday, April 28, 2007

Tired

I got up and for the rest of the day played Warcraft 3 and wrote Java. As per usual, here is the link you want, and the changes are... - 1 type of powerup added - Simple tail added to the ball - Passing a level gains you a life - Basic readme printed on the game when paused - The game now responds to mouse-clicks when the mouse is moving I also sliced three boxes of Mushrooms, tomorrow there's a big group breakfast at Church. The problem is I need to be up early...

Friday, April 27, 2007

No progress

The project has not been updated today as I was busy all day and thus distracted. However, I have a new activity to try. I am going to say something I like about every person I met today. I don't mean "I thought your t-shirt was funny", I mean things that make the person nice to know and be around. The people should be in the rough order that I spoke to them (I saw lots of people I know but most never spoke to me). Speaking over the internet doesn't count for the purpose of this exercise. In addition, the people must speak to me at least once a week or I simply don't know them well enough to list them here. Ceryn - Almost always excited with a big smile on her face and an attitude to match, interested to talk about anything troubling you and offer impartial advice SiƤn - Always innocent and well-meaning (as in, moreso than anybody else) Lorna - Happy to offer uncompromising points of view, won't compromise her principles to sound better Sarah - When not tired, always excited and awake, full of energy that enthuses those around her Brierley - Always has something positive and supportive to say to people, somehow seems to have some sort of a rota and seeks out different people each time to offer words of encouragement and renew social bonds Ryo - Talks about anything geekish but also happy to just listen to anything he understands, also has a very good sense of humour Huw - A sense of humour on the same level as myself, what more is needed? Lauren H - Happy to make sure I'm eating well, if she's making some food and I want some she'll make extra if I help cleanup and suchlike (actually, she doesn't require it I just do it out of courtesy but it's similar) Gareth - Has a similar sense of humour to myself and is happy to help with most geekish things Pete A - Is happy to share what he has if you haven't got it yourself

Thursday, April 26, 2007

Progress?

I got up and went to the Group Project lab, it's not looking good but next week we've got our presentation. I'm going to be making the report, as such the Breakout game is going to have to slow-down a little. Speaking of which, the latest version is here. And the changes are... V0.3 - Some basic graphical acceleration used, it now redraws less per cycle than in V0.2, there might be more I can do so I am going to leave it as a "to do" item - The game now has three levels, the blocks change colour each level (Black, Green, Blue) - Lives and current level down the bottom are now colour coded - Speed is now displayed in the label at the bottom and increments by 1 for every 12 blocks removed, there are 48 blocks per level Tomorrow I hope to have some powerups functioning along with some cooler effects and the ability to turn said effects on or off with keys (for those with slower computers). If you're wondering why a slower computer is struggling under such a basic game, well, it's because of Java. I shall explain why. "Compiled" Languages such as C, C++ and Objective-C are saved in a language the computer understands. "Interpreted" Languages such as PHP, Python and Ruby are saved in a language the computer does not understand very well, but there is an on-the-spot translator saved with them Java I believe falls somewhere in between the two. I shall now explain the above concept in linguistic terms. C (a very fast language) saves itself in English (we're assuming computers speak English). PHP (not as fast as C) saves itself in German. As such, to run PHP programs, the computer must translate the program before it performs each instruction, thus, slowing it down. Java stores itself as a German language with some English notes in it, thus making it easier. Does that make any sense to anybody or have I simply confounded the issue?

Wednesday, April 25, 2007

More work done, maybe I should be Chairperson?

Firstly, the Java project of Breakout. The correct link for yesterday is here, sorry for the broken link. I didn't bother going to the Java lecture, this semester they have been very poor and I would rather work on my project than attend a lecture that teaches me nothing. The project is coming along nicely, it now does several things. - When the ball hits a block, it bounces correctly, inverting only a single axis (based on the direction it hits the block in) rather than inverting both. - Pausing it really does pause it properly, it no longer resets the ball position, good luck cheating now! - The ball accelerates by 1 pixel a cycle every 10 blocks destroyed, it starts at 5 pixels a cycle - Download it here Midday there was an SSCC meeting. For some reason there seems to always be an item that is of interest to me and the rest are of no interest. Well, today's was the chairman item. Prof Cripps has been Chairperson for 10 years and has been trying to get a Student Chair for a while, he started by hinting at it and now he's put it on the agenda. There was a 2-1 ratio of Students to Staff today and of the vast horde of students, guess how many were eligible to be chair? Correct, just me. The rest were 3rd year and so would be leaving, I told them that if I didn't get a placement I'd accept it but my Mum has very helpfully found another company to apply to. Back when HP told me I was unsuccessful (I've re-emailed them to make sure they got my message asking why) I talked to a friend called Daan. Daan has had some interesting theological discussions with me and I told him that my faith was still strong and that despite the HP incident, God still has a perfect plan for me. Obviously, you can take the view that an 800 mile round trip to Newcastle and Back could be God's idea of a joke, maybe it is. The key thing is that I still believe He has that perfect plan. The thing is, I have to be able to accept that God does not want me to take a placement, it occurred to me while on the loo, "what would God do if He didn't want me to take a placement?". What's happened so far would be a good start in my opinion. So, unless something big happens, if this next chance fails then I will probably not take a placement. Tomorrow's Java project should have some speed optimisations, apparently a single core 1GHz computer isn't quite as good as a Dual Core 2.33GHz computer, odd that!

Maybe I should do some work?

Today (yes, I'm missing out yesterday) I decided that seeing as my Java project was due in in about 3 weeks (I've been putting it off for a little too long) I should at least think about which of the three options I'd take. - The first was a "chat" program. Well, after the chess game, I hate Java and Networking (at least for now, it's probably because I couldn't understand it at the time) and so don't want to do that. - The second is a game called "breakout". I asked Ioannis how hard it'd be and he said it'd be really hard because Animation in Java is really hard. - The third is a "Customer Database System", it's also a 4 man project (apparently). Tempted as I was to do #3 I decided to do #2. Having no idea how to perform animation in Java or respond to input I was not enthusiastic about it. Thankfully, the first Sun Java tutorial page told me all I needed and even gave me a load of code to start with. Over the course of about 6 hours, I have expanded somewhat upon the code that Sun have on their website to produce something that should get me a pass. I am of course going to be ensuring a First in this Coursework so will be improving it. You can get a copy of V0.1 here. Incidentally, animation in Java is just as easy as in REALBasic, I was very much "at home" as it were in writing most of it.