Moving to blogspot
After about a year of sleep my computer adventures continue at blogspot and in Finnish. Tumbler started to feel too hectic and full of reblogs and not a good way to comment. I have always wanted a comment...

JBB: An Artblog!
taylor price

No title available
hello vonnie

ellievsbear

pixel skylines
No title available

Discoholic 🪩
h
Misplaced Lens Cap
Keni

blake kathryn

shark vs the universe
I'd rather be in outer space 🛸

titsay
NASA
PUT YOUR BEARD IN MY MOUTH
Xuebing Du

❣ Chile in a Photography ❣

Product Placement
seen from Portugal

seen from United States
seen from Germany

seen from Canada
seen from United States
seen from Germany
seen from United States
seen from Malaysia
seen from United States

seen from Canada
seen from United States
seen from United Kingdom

seen from United States

seen from T1

seen from United States
seen from United States

seen from United States
seen from Malaysia
seen from United States

seen from United States
Moving to blogspot
After about a year of sleep my computer adventures continue at blogspot and in Finnish. Tumbler started to feel too hectic and full of reblogs and not a good way to comment. I have always wanted a comment...
I somehow attained enough energy to study making games and modelling after work. I have been watching the Handmade Hero tutorials and making a little adventure game in Unity 3D, which is now available for Linux. And for the game I have been making simple models in Blender. My sweet sempai friends taught me the basics of it. Here I tried to make a small kitchen cupboard. See captions for details. Blender has so many buttons and I always manage to duplicate my model at some point :O
I have been following the Handmade Hero tutorial and the SDL equivalent at Handmade Penguin . At chapter/video 004 I got into some segfault trouble when resizing the window :D I managed to fix it by reacting to both SDL_WINDOWEVENT_SIZE_CHANGED and SDL_WINDOWEVENT_SIZE_RESIZED, even when reaction to the first should be enough. I took this screenshot when it went all bananas with resizing :D I like this tutorial. I often give up on tutorials as I get lazy. I hope I can keep following this one. The scary thing is that it alread has 166 parts and it is going to go on for 2 years or something...
Such a cute laptop :3
I got the player score to show up beneath the remaining lives. It is quite not optimal, as it creates a new image of the score each time that it changes. It would be more cool to have each number as a separate image. It would also allow animating the numbers, which would look fun. But that will do for now. I had some trouble getting the SDL2 ttf system running, forgot to load it AND to initialize it. The error messages were not very clear. Actually, the game just did a segmentation fault on me. Then I left it running while editing the screenshot. When I got back it had gotten stuck in an endless loop. The player had lost and the game called the resetGame function, which created new tiles and positioned the ball, but did not change the state of the game from being Lost back to Running. So right after resetting, it thought the player had lost again. Fixed that, but forgot to give lives back to player, so the game again thought that player had lost and set the game to Lost again :D Next I think I will do sound. Then maybe have multiple levels, or some message telling the player that they lost or won.
Breakout progress update :) Now the game area can be anywhere and of any size and all checks and positions are relative to it. And I made a different area to show how many lifes the player has left. Next I could do a scoring system with combos.
Breakout now with actual tiles and the ball bounces, like, how it should. I thought it would be easy to code, but as I can only notice the collision when the ball is already over some other rectangle, I had to find out what is the most probable direction it came from and change the bounces according to that. I don't know if a correct physical collision would have been easier to program, but I resisted looking online for solution and made something myself. Now the game also resets if you break all the tiles or the ball hits the bottom border. Next nice thing to have would be to show how many lives and points the player has. I am getting more used to gVim. I still occasionally scroll it around with mouse or just holding down j or k, but more often I get these moments where I remember a handy movement command and usually get quite close to where I wanted.
Hello tumblr. I am doing this again. This thing where I pick a new language and development environment and do a simple thing. This time it is the D language on my current Ubuntu 14.10 machine. The thing itself was to make a breakout game, as simple as it gets. But getting there took some time. And will take some more, I am sure. I downloaded the dmd compiler and it worked fine. Then I got the Derelict library, which wraps SDL2 and other handy things for D. But getting them to be imported and loaded took a while and it turned out that the DerelictUtil master branch in git was outdated. The reason it took so long was because I was quite sure that I had made an error somewhere. But downloading the newest revision did the magic. Then I started programming this paddle you should be able to move. And realized that while I do game programming daily, I haven't touched the basics in ages. I got the game in an endless loop and then did not get the paddle to move because, quess what, integers and rounded down and adding 0.32 to the paddle position (int) every frame does not do nada. And SDL key down events repeat, surprise. But on the other hand, it always feel nice when you get it working. I have wanted to do something simple for a long time, but always end up planning too much and getting lost on what language and programs should I use. And that way it does not feel fun anymore, just something that I have to do. Now I'll just do it straight and ugly. All code in one file, no IDE (at least not yet, might need it for debugging later on) and I did not bother learning D's dub package management thingie. I just have gVim and Make. I hope I can find joy in making simple games this way.
I bought a new computer recently and today installed some rad pink leds into it. Previously I had the laptop that I bought for the exchange studies, but it was a bit too slow to play games on full HD, so I sold it to a friend and updated to this. (And I really did not need that much faster computer, I just wanted a desktop because of the pretty lights.) For those interested, it is a Asus H97 with i3-4150 and a NVIDIA GTX 750ti overclocked also by Asus. It only has a 128 GB SSD, because it only has Xubuntu linux (at least for now.) All wrapped up in a Bitfenix NEOS case. Ironically, I haven't played any games on it yet. Oh, yeah, I also graduated from Kajaani University of Applied Sciences just before Christmas 2014.
I made a happy wonky blues in C.
I changed to a better emulator called higan and the game now actually runs 60 fps and I can play with d-pad of my Xbox 360 controller, thus the game is much easier... Them nasty level designers started to use old levels around 5-3, but with little changes, like cannons shooting at you, or extending those spinning, Mario grilling flames just when you thought you were safe. The cannon has always been one of my favorite enemies in Super Mario. They look so determined.
Harry Potter and the binary database
I thought I would up the nerdiness on this tumblr blog of mine and write about what I actually do and study; programming. I have been working on the Learn C the Hard Way tutorial for some time now. I wanted to really know what is going on and solidify my understanding of various terms. The exercises from 1 to 16 have been somewhat familiar, but at exercise 17 things got really interesting with file access. File access and manipulation is something I have rarely done. I find it cool that in the exercise a database is created into stack memory and then just written into a file, just like that. I have used files before, but written them as text or xml, but now I just write binary data. So I created an empty database file with the name wizards.db. It should contain a database with 10 entries, each consisting of: 4 byte int called id, the unique number for person. Values from 0 to 9. 4 byte int called set, tells if this entry is set and thus valid. Value is 0 or 1. C does not have the Boolean type and int is used instead. 20 byte char array for name. 20 byte char array for email. Let's look how it shows up with less.
Look, there are letters from A to H and a mysterious black area! This does not help much so I installed a hex editor called Bless to inspect the file with it.
The letters are numbers, from 01 to 09 (actually 00 might be there too). The maximum value for a number is FF == 128, so that is one byte of eight bits. The numbers are the id numbers of the persons. Let's add a person to 00 and see where they appear in the file. [bless 2]
There is that boy, Harry. :D First four bytes are 00, that is the id, next four are 01, for the set. Then begins his name and has empty space after it. I made the email too long and the "uk" did not fit and so the string is not correct because it lacks the final '\0'. We can see that the next id 01 starts right after the last character 2E, which is the full stop '.'. See how I can count to twenty :3 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 h p o t t e r @ h o g w a r t s . c o . u k Let's add Hermione too with id 1 and a proper email address. [bless 3]
Everything is fine now, there is a 00 before the 02.
Let's print the database and see how it goes with Harry's invalid email. Should not be a problem. [terminal]
Oh Harry, you broke the database. Ten points from Gryffindor. A proper database might stop you from setting values that do not fit the intended space... And if I changed the sizes of the data fields in the code and would print again, it would read the file wrong and things would get even more messy. So in this case a plain text file might serve better.
I always died in Mario when I was tiny and could hardly get past the third level and all my friends were pros, which was only natural because they could play it all the time with their consoles. I did not have one and I never bought a SNES even after saving all the thousand finnish marks for it. So I thought I would finally beat these games, starting from the first one. But it seems that the third level is still difficult for me.
Piano, bass and a (hipster) drummer swinging in pixitracker
I tried pixitracking again :3
Such tiny and cute smack-on-the-ear buns. I wonder how they look after the PURGATORY My oven is over-efficient or something, last time I grilled cookies to crust in half the time it was supposed to take to bake them... The results are...impressive. In just 7 minutes in 175 celsius when it should be 15 mins in 225. But, they taste really good and are extra crunchy because I did not have any eggs left to coat them with :3c
I am always starting to learn new languages... This time it is old skool C at Learn C the Hard Way I am running a virtual linux to avoid the hassle of installing stuff in windows.