Mikes Crazy Universe.

RSS

Posts tagged with "programming"

Feb 5

Oh, and as for the record, Project Blue Inventory is HalflingLife (An older project of mine) - Just, with a more mature plan of development and design and experimentation.

Only this time around, this is getting done.

New life is born into old(er) projects. It’s so exciting :)

I create & code software and apps, not to be well known or to gain anything..

I do so simply because i love creating software & games.
And i don’t need any other reason to.

JavaScript - At Top?

JavaScript is currently the top language used on Github, with 21% of project’s using it!

See the following link for more info.

https://github.com/languages

This was a simple concept that i did in Photoshop - It was supposed to be a retro and modern take on the classic forum, going for a light, small color shceme.I ended up programming it into a fully working forum (Thats what you can see above)Sourcecode will be given if you request.

This was a simple concept that i did in Photoshop - It was supposed to be a retro and modern take on the classic forum, going for a light, small color shceme.
I ended up programming it into a fully working forum (Thats what you can see above)

Sourcecode will be given if you request.

Halfling Life - Updates Schedule!

So - To loosen the stress of actually doing the project, because lets face it, most projects you undertake, no matter what they are, can be so fun, but sometimes even a little bit stressfull.
So to keep at proper “routine” as it is, because fucking hell, i’m useless at deadlines :p - I’m going to do it as weekly updates, no matter how big or small, the updates will be posted here on a weekly basis.

So this weeks update:
All i have to say is, we have the working base terrain engine (Screenshot was posted a few days ago), in a language i’m new to - Even thats an accomplishment to me.

Next weeks update is primarily going to be populating the map with useful elements.

You will probably notice the game title on the game window. Halfling-Life. At the moment that’s all i can think of, i made a quick list of names breifly a while back, and that was on the list. I’ve used it as a placeholder for the project name, but it’s starting to grow on me. So cliche i know haha.If you have any ideas for the name, feel free to post!
So this is it, the barebones of the game at the moment haha, basic map generation (Very basic atm!) - And i’ve spent the last hour or so after work implementing map panning, i added this into the web version of the game a few weeks ago, and it is very handy, i personally prefer it more than holding up key on your keyboard. It’s more…. Fluid.
So yeah, i guess the next step now is change the map loading to load from a 3D data structure rather than fixed 2d, ie, one level map.After that is re addin the perlin noise, and get the map looking sexy again.The next post will probably be after those are back in, theres no point me posting about how i went about it and the ideas of why behind it as i’ve already written it for the web version of the game.. Just go back a few pages on my blog if you want to read about it.I’m happy with todays and yesterdays progress, even so far it’s gone well, the map structure is in (To be updated now), and the tile loading is in (A single tile type at the moment though), and map panning. Lovely!

You will probably notice the game title on the game window. Halfling-Life. At the moment that’s all i can think of, i made a quick list of names breifly a while back, and that was on the list. I’ve used it as a placeholder for the project name, but it’s starting to grow on me. So cliche i know haha.
If you have any ideas for the name, feel free to post!

So this is it, the barebones of the game at the moment haha, basic map generation (Very basic atm!) - And i’ve spent the last hour or so after work implementing map panning, i added this into the web version of the game a few weeks ago, and it is very handy, i personally prefer it more than holding up key on your keyboard. It’s more…. Fluid.

So yeah, i guess the next step now is change the map loading to load from a 3D data structure rather than fixed 2d, ie, one level map.

After that is re addin the perlin noise, and get the map looking sexy again.
The next post will probably be after those are back in, theres no point me posting about how i went about it and the ideas of why behind it as i’ve already written it for the web version of the game.. Just go back a few pages on my blog if you want to read about it.

I’m happy with todays and yesterdays progress, even so far it’s gone well, the map structure is in (To be updated now), and the tile loading is in (A single tile type at the moment though), and map panning. Lovely!

Progress on the new engine. Day 1.

I’m not going to bore you about all the latest troubles i’ve been having with C# and XNA due to my terrible knowledge. So i’ll get onto the good stuffs.

The new game engine is up and running, albiet to the very basic features, and no game-wise features at all.
I’m using XNA to help me out because lets face it, it is going to make my job 100x easier, and theres no point recreating it if somebody already has made it better than me. Spending way more time optimizing and developing features for it.

So far all i have managed to add is.
Engine class, this contains a “message” log sort of thing, along with a few start variables for when the engine needs them, versions, game name things and also a little function which allows me to change the game window size on the fly. Lovely!
Map Class, not much is contained in this, other than a few tester functions letting me try and work out C# fixed arrays. I’m getting the hang of it now. Sort of :).
This will eventually contain the preloader for the map (More info below on this). This will eventually be mainly used for figuring out tiles needs to be currently drawn, and other things in that area.
Tile class, this is called each time the map class wants to create a new tile, it allows to easily create a new instance of a tile, including positioning on the screen, tile information (Type?), and also the position of the image on the main tiles tileset.
Also, spent about 10 minutes putting all the tiles currently made into a single tileset.
I also googled alot of time for support on stopping textures going blurry when being enlarged (As pixel are looks terrible when blurry), in the end i could change sampler type to pointWrap, which instantly fixed my problem.

So yes, maybe i am over complicating things at the moment, especially this being a bad way of going about when learning the language, but it’s all working well. Of course i spent like 30 minutes playing around with the same bit of code just to get it to work, but at least after playing around with it, i know for next time, how to fix that problem again.

I’ve also managed to add perlin noise to the engine, this allows me to create dynamic landscapes in the game again. This was a must for me. Luckily again - Google to the rescue where someone had already created a perlin noise class. Lovely!
I’ve literally just this minute got it working, and drawn it onto a pictureBox (c# not xna), just to test how it works with live results. Success as it all works as expected. It means i get to spend days and days figuring out a great looking algorithm to generate the landscape.

I am also going tos tick with a fixed array rather than a list for the tiles as it makes sense, the map size >will< be fixed for now, so i wouldn’t need the tile array to be bigger than the map size.

And thats about it really, it’s been an exciting “first day” really, i had spent the past few days youtubing my ass off at C# tutorials and reading so many tutorials too but at the end of the day, the best way for me personally to learn a language is just to get stuck in and play around with it all - So today thats what i decided to do…

Earlier on i thought that the progress was really slow on the engine (As to be expected working in a new langauge), but looking back, writing about it all today, it’s gone quite well.. I’m impressed with myself for once :).

Help is always appreciated.

Well guys, i need to ask for some help.
I’ve decided to recently learn C# - It’s going quite well, and i’m picking up ways of doing things in the language, finally. I decided to go with C# rather than Java as i feel more comfortable with that language.

Coming from a web development background, i didn’t really use Classes as much as i probably should of, and only recently on my latest few gaming projects including (The main one is the Isometric game that i’m developing).

I get the concept of classes, and why to use them and when to kind of create others, that’s fine - And it’s all coming along really well. What i really struggle with is inheriting from another class.

What i would like from you guys is any tips and hints for someone starting in C# and how to go about the best ways, and examples of inheriting from another class (Best examples would be relating to games?). Or just any tips in general that you think may help.

Thank you guys!

The game is switching to Java!

Okay then - I know this is something that you will read and probably thing, how fucking stupid, decide yourself!

But alas here it is.
Been as i will end up rewriting some of the game using a premade graphics library for the game, should i also switch language? Currently it is done in HTML5 and JavaScript - It’s fine on my computer, but what happens when i add more logic that will eat up the browsers speed aswell as the drawing methods? Of course optimizing it is an option, but you can only optimize something so much, maybe the world truly isn’t ready for HTML5 Yet… Yet! When it gains proper hardware support i think it will be great to use, but for now, i think it’s time to change.

I’m switching over to Java! That means that the game i am creating will also be ported and rewritten in Java, gaining incredible performance boosts. It’s a win win for everyone i think.

I have toyed with Java before, just little bits and bobs here and there, creating very basic applications, but i can understand the syntax mostly, the only thing that i struggle with is the classes, and “extending” from another object? Of course i researched it before and never understood it really, so i went back to the language i knew better, web languages.
Of course i know i can’t stick with them forever and want to broaden my knowledge of programming even further, so why not?
This is a perfect opportunity to start learning Java and finish creating my new game with it.
I still want it widely available and thus will end up using some sort of Library to help out, Moosader kindly boasts about Libgdx from time to time and i think it will suit what i need it for. So thank you Moo ;).
I’m sure it will take a while for me to get into the swing of programming in Java again, and relearning the Syntax, and ways to do things. But again - I think it’s just a perfect opportunity to do so.
Actually, ignore the question above, lets do this!
I’m going to be porting the barebones of the engine over into Java and begin programming it in that language! Of course we have haters and lovers for Java (Sometimes too many haters?) But it’s a language which i am most comfortable with switching over to, and from what i have saw before, quite powerful when you do it right.

It will be a few days at very least before you will be able to see any basic screenshots of the game again. Of course this does mean scrapping most of it, giving me a chance to rewrite it more efficiently.

I am a bit sad that i won’t be able to have it running in the browser, but isn’t there some way of adding running the application in the browser using Java Applet or something? Anyway, that library i saw something about porting it to Android and HTML5 too, perfect!

So from today, i guess it marks a new mini milestone for me, and i am sharing it with you.

Ps. I babble on too much sometimes and it’s hard to stick with, but at least all this is out of the way and i can start planning some things of what needs doing first, begin creating the game again. I am incredibly excited about all of this, and hopefully after a few weeks of development you will be too!
Stay tuned!
~Mike.

rapidflowstudios said: haha sorry, I got you mixed up with somebody else that I’m following. He’s making a tile-based side-scroller

Haha that’s fine, was about to say! - At first i was thinking, meh? Game Maker? nawwww - He really never just said that hehe… never really got the hang of it, alright for the right people who it will benefit it, i’m a stubborn bastard who’s stuck in his old ways of coding in Notepad++, it’s basically why i own an OS, just so i can run notepad++ haha oh god!

Enhanced by Zemanta