Monday, 30 April 2012

AHHHHHHHHHHH

I recorded today for about 5mins then i paused to get the door and forget to start it again so 40mins of work has gone unrecorded.

On top of this i soon noticed that while i had converted class's to inherit from a GameObject class and updated main that my collision function was not working correctly, after removing a line of code in the Ball class that changed the direction of the ball when it hits the AI's paddle i found it started to pass right through the paddle but the player paddle and ball was unaffected.

90 minutes later i realised i had declared boundx and boundy in the AI class as well as GameObject and after to removing it from the AI class it now works.

Wasn't alot of time there for a simple mistake.

Saturday, 28 April 2012

The Player, The AI and The Ball


I should have left it for a while and gathered my thoughts before starting the other class's but i dived in and not wanting to stop while recording rushed 3 class's together for the player, AI and the ball but I did not use any parent class for them to inherit from tho i plan to add it in later.

Feeling rushed while coding does help get out more code then i normally would do however, I did forget alot of things i already have set ways of doing, like updating movement of a object.

There are alot of things i will change and play around with now that the base for the game its self is there even tho the ball class needs its collision finishing and more added to it like audio.

Once the currant code is tidyed up and set in the right direction i will add the gamestate class to manage whats going on.


Heres a very tired voice over to 54minites of the worst coding you will ever see compacted into 6 mins.

Pong Post: Shell code for main is in!


So, I have added the shell code to my Pong project, nothing to fancy just all the allegro bits plus a Boolean array for the buttons on the keyboard.
Iv decided i will record every moment of making this game as well as doing a voice over for each video speeded up so as not to waste anyones time.

The videos will be small in size so change it up to 720p to watch it as YouTube will destroy it in lower resolutions.

Here's the 1st video with a poor voice over !

1st Things 1st

So, I'm teaching myself to make games using c++ and allegro 5 for the moment and thought maby i should post about the projects I'm working on so i have a kind of record on my own progress and maby it will help some people out.

I'm new to bloging anything so the start to this thing wont be pretty or well made, but it can only get better(hopefully) and to help get across what I'm doing i will make short videos and upload them to my youtube channel and post them on here, hopefully the videos will add to what I'm doing here and clear up anything misunderstood after 1st read.


1st thing I'm gonna work on is making the classic pong game with half decent graphics, sounds and a score board plus computer AI to control the other player.

This will be a redo for me as iv made pong before but was without class's, AI, score, sound and the graphics were the built in shape drawing functions from allegro but this time its gonna be good as iv learnt alot more since then.

So, my next post will be on that then, stay tuned i guess.