Tuesday, 29 March 2011
A few people asked me how I did the graphics in my last video.
It's actually quite simple, First I took a screenshot from my tilemap from the running game and pasted it to photoshop. It looked like this:
Sunday, 27 March 2011
This is my third video about making my little game and (hopefully) learning some c++ on the way.
There has been a lot of progress recently,
mainly the graphics layer which I did to test of the style how the game could look like.
Next there is an ability to read signs and interact/chat with items/enemies,
then there are destroyable blocks which (are horibly implemented, but works) can be shot with your weapon, and ofcourse I made player start without the weapon so you need to find and pick up the weapon first before you can use it.
Then we have a "Main menu" and a "Pause menu" from which you can quit the game.
and yes we have first signs of water... it's just a graphics for now, it does nothing water should do, but I still don't know what would be the best way how to do water.. hmm, need to think a lot more for longer period to figure it out somehow :3
anyway there are bugs, mostly the whole collision detection system is one big bug -_- that I don't like..
and yes I almost forgot, I made this into a release if somebody would want to give it a try... (^_^)b here you go: thegame_7weeks.zip
any comments/critique/hints/hate mail welcome...
BTW you can toggle thru debug modes with 'W'
there are 5 modes:
first just display some crap on top,
second will show you the collision tiles,
third will show the bounding boxes for player collision detection,
fourth will make you fly and
fifth will swich off the collisions so you can fly thru walls.
Second video from my attempt to learn c++
This time I tried to implement slopes!
Something so trivial looking like slopes is actually pretty tricky task to do... my brain almost exploded till I finally figured it out how to do it :3
I googled and googled and found a way with an array thingy attached to each slope tile telling how much should push the hero upwards but that sounded like a pretty over-complicated way to make an array for each slope tile so I went my own way and simply calculated how far is my characted inside of the slope tile on X axis, then simply adjusted Y axis by the same amount :D ...it was working for 45 degree slopes, then for 22.5 ones I just divided that amount by 2
another byproduct with this method was that my heroine was snaped to the slopes like a magnet as soon as she entered the tile with a slope haha.. so I had to figure out the way how she can un-snap to be able to move freely and jump from the tiles and not be locked to it like a train to rails
I finally managed to solve that as well, there are still some issues and the slope tiles can't be touched from the bottom and from the sides or bad things will happen -_-
Only the 45 degree ones can be touched from the sides like you can see in the video in the top right part of the map.. and it took some huge effort to be able to do that, heh.. but my brain gave up on the rest xD
The whole code is almost 1000 lines by now
After my first 2 weeks of c++ experience and my epic tictactoe program I have dicovered HGE (Haaf's Game Engine) and decided to give it a go as it looked as something very easy for somebody who knows very little about windows programming and started learning it... here is the outcome after another 2-3 weeks of work
Saturday, 26 March 2011
After first week learning the basic in the console mostly from here http://www.cplusplus.com/doc/tutorial/ I got bored and decided to move to my first window program. To open a window is not an easy task! But I found some good youtube tutorials from xoax here http://www.youtube.com/user/xoaxdotnet and in about 2 weeks time total from the beginning I was able to get out this: