Author Archives: Anthon Fredriksson
Select name state
Today I created a state called Intro where youcan create a name(for Highscore).
You simply press those letters you want and then you can start the menu screen.
This is a pre beginning to highscore which will save the name, score and possible time into a file.
Select name state
Today I created a state called Intro where youcan create a name(for Highscore).
You simply press those letters you want and then you can start the menu screen.
This is a pre beginning to highscore which will save the name, score and possible time into a file.
Game over state, new graphics and multiple levels
Today me and Laban got a lot working.
We created a game over state which does nothing expect getting us back to the menu state.We have new graphics for the borders and the drops.
A level indicator was added on top of game area that shows you which level you are currently on.And when you finish a level, a small “award” kind of sound will play and change level.
Game over state, new graphics and multiple levels
Today me and Laban got a lot working.
We created a game over state which does nothing expect getting us back to the menu state.We have new graphics for the borders and the drops.
A level indicator was added on top of game area that shows you which level you are currently on.And when you finish a level, a small “award” kind of sound will play and change level.
Audio sliders
Today I made audio slider for our options state.There is one sound slider, one music slider and one master audio slider.
The master audio slider goes from 0.0 to 1.0
The sound and music slider goes from 0 – 128
So for example, when I have the music slider on 64 and the master slider on 0.5, my music will play at volume 64 * 0.5 = 32!
Audio sliders
Today I made audio slider for our options state.There is one sound slider, one music slider and one master audio slider.
The master audio slider goes from 0.0 to 1.0
The sound and music slider goes from 0 – 128
So for example, when I have the music slider on 64 and the master slider on 0.5, my music will play at volume 64 * 0.5 = 32!
Much changes!
The whole game has been reworked a lot and the current method for creating a sprite is to do
Sprite* ball = new Sprite(“ball.png”, 100, 300);
This will create a sprite at position 100, 300 with a ball image. I exploded the drawManager and divided it into parts, mostly in the WindowManager which manages window and renderer operations(mostly SDL stuff). The current version of the window Manager only takes one window and renderer but it will be changed to have multiple windows […]
Much changes!
The whole game has been reworked a lot and the current method for creating a sprite is to do
Sprite* ball = new Sprite(“ball.png”, 100, 300);
This will create a sprite at position 100, 300 with a ball image. I exploded the drawManager and divided it into parts, mostly in the WindowManager which manages window and renderer operations(mostly SDL stuff). The current version of the window Manager only takes one window and renderer but it will be changed to have multiple windows […]
Sound effects
Yesterday, the 5th January I managed to create sound effects.
Since we will use audio like everywhere in our game I decided to initialize the sounds in main.cpp. It could also be initialized in engine but I choosed main for the simplicity, right now main is holding all the important initializes which I think is good practice.A class that manage SDL-only initializes could have been made but for this project I do not see why this shouldn’t be enough.
If you want […]
Sound effects
Yesterday, the 5th January I managed to create sound effects.
Since we will use audio like everywhere in our game I decided to initialize the sounds in main.cpp. It could also be initialized in engine but I choosed main for the simplicity, right now main is holding all the important initializes which I think is good practice.A class that manage SDL-only initializes could have been made but for this project I do not see why this shouldn’t be enough.
If you want […]
Text class
Today I have made the text class which will be used to present text in our game.
The class supports different fontFamilys, fontSizes and colors and can be placed anywhere on the screen.
Here is a picture of 2 text objects I use here.
Tomorrow I will start working on player score and lifes and also when you destroy a brick which is above level 1(the blue ones) that block should change its level and sprite to the level […]
Text class
Today I have made the text class which will be used to present text in our game.
The class supports different fontFamilys, fontSizes and colors and can be placed anywhere on the screen.
Here is a picture of 2 text objects I use here.
Tomorrow I will start working on player score and lifes and also when you destroy a brick which is above level 1(the blue ones) that block should change its level and sprite to the level […]
Yesterday, the day before 2014 I updated the ball collision function with the bricks.But since I proceeded from our already finished collision which uses x and y as the center I couldnt not get it to work since we draw from the upper corner. I have added some more functions in to the Utils class. Not much more has been done that day.
Oh, I also helped out Laban with some configurations. I can’t believe hes been stuck that long time […]
Yesterday, the day before 2014 I updated the ball collision function with the bricks.But since I proceeded from our already finished collision which uses x and y as the center I couldnt not get it to work since we draw from the upper corner. I have added some more functions in to the Utils class. Not much more has been done that day.
Oh, I also helped out Laban with some configurations. I can’t believe hes been stuck that long time […]
Github & config
Today I looked upp on GitHub and I created a repository with my work uploaded.I will try to push every evening so that everyone can see the final code. I’ll hope Laban contacts me soon because much of the code is already done.
I have get the bricks to load from file and they are drawed in the game state. I have to add collisions to them so the ball can bounce of it(and remove it).
I also had a small discussion […]
Github & config
Today I looked upp on GitHub and I created a repository with my work uploaded.I will try to push every evening so that everyone can see the final code. I’ll hope Laban contacts me soon because much of the code is already done.
I have get the bricks to load from file and they are drawed in the game state. I have to add collisions to them so the ball can bounce of it(and remove it).
I also had a small discussion […]
Pixel perfect collision and particles
Yesterday I had time to check up on those collision and so far I have done these collisions:
Rectangle vs Rectangle
Circle vs Circle
Pixel Perfect
We miss the Rectangle vs Circle collision but I dont think it would be so hard to implement that since we already have collisions for circles and rectangles.
I’ve also changed the plan a bit and removed those tetris falling blocks and replaced it with static blocks in the top(like arkanoid) but with a few changes that will come […]
Pixel perfect collision and particles
Yesterday I had time to check up on those collision and so far I have done these collisions:
Rectangle vs Rectangle
Circle vs Circle
Pixel Perfect
We miss the Rectangle vs Circle collision but I dont think it would be so hard to implement that since we already have collisions for circles and rectangles.
I’ve also changed the plan a bit and removed those tetris falling blocks and replaced it with static blocks in the top(like arkanoid) but with a few changes that will come […]
Block object and Utilities class
The following was made yesterday and I had no time making a blogpost because now it’s Christmas.
So what is have been done.
I have tweaked the GameState since the main focus lies there and not in MenuState och HighscoreState.
I added blocks spawning in a rate of 1*.6 seconds wich will be changed in future. I´ve also added movement to the blocks. I think I have alot more understanding in pointers and iterators now. First I saw an iterator as a usual […]
Block object and Utilities class
The following was made yesterday and I had no time making a blogpost because now it’s Christmas.
So what is have been done.
I have tweaked the GameState since the main focus lies there and not in MenuState och HighscoreState.
I added blocks spawning in a rate of 1*.6 seconds wich will be changed in future. I´ve also added movement to the blocks. I think I have alot more understanding in pointers and iterators now. First I saw an iterator as a usual […]
Colliding with bounds
Now I have managed to make the blocks collide with the floor. But their y values are not equal when the land so some blocks get an offset wich I cant get rid of (visible on picture). I think it’s because we are dealing with floats. I will try to round it to nearset 1 decimal.
I have not heard from Laban since the 23th. I hope hes OK and have grabbed the sounds.My next task is […]
Colliding with bounds
Now I have managed to make the blocks collide with the floor. But their y values are not equal when the land so some blocks get an offset wich I cant get rid of (visible on picture). I think it’s because we are dealing with floats. I will try to round it to nearset 1 decimal.
I have not heard from Laban since the 23th. I hope hes OK and have grabbed the sounds.My next task is […]
Input Manager & sprite
Today we managed to do alot of stuff. We have created a very flexible class, Entity all game objects will instance of or inherit. We added keyboard and mouse input to every state.
Tomorrow I continue on our project plan and make blocks fall and stack on the bottom of the screen.I also think we should resize the player object.Laban is currrently working on SFX which I have no clue about how to do. I think we’ll […]
Input Manager & sprite
Today we managed to do alot of stuff. We have created a very flexible class, Entity all game objects will instance of or inherit. We added keyboard and mouse input to every state.
Tomorrow I continue on our project plan and make blocks fall and stack on the bottom of the screen.I also think we should resize the player object.Laban is currrently working on SFX which I have no clue about how to do. I think we’ll […]