Blog - adamk33n3r/Karthas GitHub Wiki

January 11, 2013

I have decided to start a blog about this project and my struggles/accomplishments through it. It'll be mostly just for me to keep track of what I'm doing. So anyways we'll see how it goes.

Well I just made a ResizableImage class to allow easy creation of backgrounds for the different components of the layout out of one image. It took some time to make but it was well worth it. Another thing that I did was make the game able to run as an Applet, mostly for testing but may be used as the way I deploy my game...haven't decided that yet.

January 13, 2013

I now have started implementing a cache for the resources for Karthas. It will now make a folder called ".karthas" in the users home directory (the one that houses "Documents", "Music", and things like that) and, right now, stores the resources in a folder called "resources" (who would have guessed). And I just now added the code that actually loads it from that location. I haven't added very many failsafes though, like if it fails to download or extract.

January 18, 2013

I started to try out the resizing feature of LWJGL and I was having some trouble with the objects rendering in their correct places after resizing. I asked for some help over at the LWJGL forums and got some quick help that fixed the problem (I wasn't changing the Ortho...silly me). One thing that is still messed up is if I am resizing while changing to fullscreen. When I go to fullscreen it draws the objects in a ~800x600 box in the lower left corner. I don't know what is wrong with that so I'm just waiting for a reply.

Besides that I really haven't done much. I really gotta plan some stuff out...figure out what to do and when to do it.

January 19, 2013

I wanted to add a screen that would show up while the resources were downloading so that (in the future when I have a lot of files) users aren't like "What the crap is this black screen doing here???". So ya, that had some troubles with it but I finally got it and it looks "totes fabs".

January 23, 2013

So I'm still having super-struggles with fullscreen. I just don't get it. I'm doing the same exact thing I'm doing when I resize....there must be some secret fullscreen function haha. I'm just going to keep trying things I guess...HELP!

BREAKTHROUGH!!! I just tried changing the size after pushing 'f' and then setting it to fullscreen after the second 'f' press....it works! Soooo...I'm thinking it must have to pass through a Display.update() first before changing? Does that make sense?

March 9, 2013

Wow....has it really been over a month? I've just been uber busy with school so haven't had much time with Karthas. I've also taken on little side programming projects like a small little chat server. It was fun.

Well....I fixed the fullscreen issue...I guess it takes a month of rest to find the fix haha xD. So the Display.update() 'fix' that I mentioned I found earlier wasn't really a fix. What actually was the problem was needing to call Display.setFullscreen(). See, I was under the impression that Display.setDisplayMode() with a fullscreen DisplayMode would automatically make everything alright. Well what needs to happen is you need to call Display.setFullscreen() every time you change fullscreen modes and after you change the DisplayMode.

So...it works...for now. I haven't tested on other computers but hopefully it should all work out. I hope to get back up and running with this project as I have now left it very much in the dust.

P.S. One thing I really want to mention is that I am a future coder: I code for the future. I make things very very abstract and very easily changeable and this sometimes makes me lose interest because of all the tedious interfaces I get to build (ha...ha....'get to') like the whole Menu API, it's pretty intense. Knowing this, I think that now I am going to start to add more functionality to Karthas like maybe actually having PLAYERS!!!