Author Archives: Viktor Andersson

AI, I hate AI

This week I took it upon myself to do the AI for the enemy fish and the light bulb for the player. While the light bulb was pretty straight forward the AI was a lot harder to put together. I realize this task will take much more time than I expected. It didn’t help that I was stuck in bed the whole week with fever and “puke sickness”.

The light bulb consists of a sprite that’s always drawn just in […]

/ Comments Off on AI, I hate AI
Program: Programming

AI, I hate AI

This week I took it upon myself to do the AI for the enemy fish and the light bulb for the player. While the light bulb was pretty straight forward the AI was a lot harder to put together. I realize this task will take much more time than I expected. It didn’t help that I was stuck in bed the whole week with fever and “puke sickness”.

The light bulb consists of a sprite that’s always drawn just in […]

/ Comments Off on AI, I hate AI
Program: Programming

AI, I hate AI

This week I took it upon myself to do the AI for the enemy fish and the light bulb for the player. While the light bulb was pretty straight forward the AI was a lot harder to put together. I realize this task will take much more time than I expected. It didn’t help that I was stuck in bed the whole week with fever and “puke sickness”.

The light bulb consists of a sprite that’s always drawn just in […]

/ Comments Off on AI, I hate AI
Program: Programming

AI, I hate AI

This week I took it upon myself to do the AI for the enemy fish and the light bulb for the player. While the light bulb was pretty straight forward the AI was a lot harder to put together. I realize this task will take much more time than I expected. It didn’t help that I was stuck in bed the whole week with fever and “puke sickness”.

The light bulb consists of a sprite that’s always drawn just in […]

/ Comments Off on AI, I hate AI
Program: Programming

SFML…

int _tmain(int argc, _TCHAR* argv[]) {
RenderWindow window(VideoMode(1024, 640), “Caption”);
CircleShape shape(300.0f);
while (window.isOpen()) {
Event event;
while (window.pollEvent(event)) {
if (event.type == Event::Closed) {
window.close();
}
};
if (Keyboard::isKeyPressed(Keyboard::Escape))
{
window.close();
};
if(Mouse::isButtonPressed(Mouse::Button::Left))
{
};
window.clear(Color(0x11,0x22, 0x33, 0xf));
window.draw(shape);
window.display();
}
return 0;
};
 
 
Om vi ändå lärt oss det här före jul…

/ Comments Off on SFML…
Program: Programming

SFML…

int _tmain(int argc, _TCHAR* argv[]) {
RenderWindow window(VideoMode(1024, 640), “Caption”);
CircleShape shape(300.0f);
while (window.isOpen()) {
Event event;
while (window.pollEvent(event)) {
if (event.type == Event::Closed) {
window.close();
}
};
if (Keyboard::isKeyPressed(Keyboard::Escape))
{
window.close();
};
if(Mouse::isButtonPressed(Mouse::Button::Left))
{
};
window.clear(Color(0x11,0x22, 0x33, 0xf));
window.draw(shape);
window.display();
}
return 0;
};
 
 
Om vi ändå lärt oss det här före jul…

/ Comments Off on SFML…
Program: Programming

SFML…

int _tmain(int argc, _TCHAR* argv[]) {
RenderWindow window(VideoMode(1024, 640), “Caption”);
CircleShape shape(300.0f);
while (window.isOpen()) {
Event event;
while (window.pollEvent(event)) {
if (event.type == Event::Closed) {
window.close();
}
};
if (Keyboard::isKeyPressed(Keyboard::Escape))
{
window.close();
};
if(Mouse::isButtonPressed(Mouse::Button::Left))
{
};
window.clear(Color(0×11,0×22, 0×33, 0xf));
window.draw(shape);
window.display();
}
return 0;
};
 
 
Om vi ändå lärt oss det här före jul…

/ Comments Off on SFML…
Program: Programming

SFML…

int _tmain(int argc, _TCHAR* argv[]) {
RenderWindow window(VideoMode(1024, 640), “Caption”);
CircleShape shape(300.0f);
while (window.isOpen()) {
Event event;
while (window.pollEvent(event)) {
if (event.type == Event::Closed) {
window.close();
}
};
if (Keyboard::isKeyPressed(Keyboard::Escape))
{
window.close();
};
if(Mouse::isButtonPressed(Mouse::Button::Left))
{
};
window.clear(Color(0×11,0×22, 0×33, 0xf));
window.draw(shape);
window.display();
}
return 0;
};
 
 
Om vi ändå lärt oss det här före jul…

/ Comments Off on SFML…
Program: Programming

SDL_ttf

I’ve tried to get the SDL_ttf working.
It turns out that it was made for SDL 1.2 and not 2.0, which we are using.
This makes implementing it a lot harder, it’s based on SDL_Surfaces and not SDL_Windows, that we use..

/ Comments Off on SDL_ttf
Program: Programming

SDL_ttf

I’ve tried to get the SDL_ttf working.
It turns out that it was made for SDL 1.2 and not 2.0, which we are using.
This makes implementing it a lot harder, it’s based on SDL_Surfaces and not SDL_Windows, that we use..

/ Comments Off on SDL_ttf
Program: Programming

SDL_ttf

I’ve tried to get the SDL_ttf working.
It turns out that it was made for SDL 1.2 and not 2.0, which we are using.
This makes implementing it a lot harder, it’s based on SDL_Surfaces and not SDL_Windows, that we use..

/ Comments Off on SDL_ttf
Program: Programming

SDL_ttf

I’ve tried to get the SDL_ttf working.
It turns out that it was made for SDL 1.2 and not 2.0, which we are using.
This makes implementing it a lot harder, it’s based on SDL_Surfaces and not SDL_Windows, that we use..

/ Comments Off on SDL_ttf
Program: Programming

Hitbox

Today we managed to get rid of the ghost hitbox on the left side of the player. And the ball now bounces of of the sides of the player as it should. 

/ Comments Off on Hitbox
Program: Programming

Hitbox

Today we managed to get rid of the ghost hitbox on the left side of the player. And the ball now bounces of of the sides of the player as it should. 

/ Comments Off on Hitbox
Program: Programming

Hitbox

Today we managed to get rid of the ghost hitbox on the left side of the player. And the ball now bounces of of the sides of the player as it should. 

/ Comments Off on Hitbox
Program: Programming

Hitbox

Today we managed to get rid of the ghost hitbox on the left side of the player. And the ball now bounces of of the sides of the player as it should. 

/ Comments Off on Hitbox
Program: Programming

Sound


We managed to get the sound working today. Not the best sound effects but it’s far better than nothing!
When we tested the sound we found a bug.
The pad jumped in the x-axis if it was moving in to a wall when the ball hit a brick.

/ Comments Off on Sound
Program: Programming

Sound


We managed to get the sound working today. Not the best sound effects but it’s far better than nothing!
When we tested the sound we found a bug.
The pad jumped in the x-axis if it was moving in to a wall when the ball hit a brick.

/ Comments Off on Sound
Program: Programming

Sound


We managed to get the sound working today. Not the best sound effects but it’s far better than nothing!
When we tested the sound we found a bug.
The pad jumped in the x-axis if it was moving in to a wall when the ball hit a brick.

/ Comments Off on Sound
Program: Programming

Sound


We managed to get the sound working today. Not the best sound effects but it’s far better than nothing!
When we tested the sound we found a bug.
The pad jumped in the x-axis if it was moving in to a wall when the ball hit a brick.

/ Comments Off on Sound
Program: Programming

Spelprogrammering 1, Assignment 1 – Arkanoid remake

 

Me and Oskar Lidh Frykmark are doing a remake of Arkanoid. We looked at a version of the game and decided what we needed to do.
Gameobjects:
Paddle,
Blocks,
Score (GUI)
Lives (GUI)
Ball,
Optional:
Particle Effects,
Power-Ups/Downs
Things that needs to be done:
Collision,
Score Counter,
Victory/Loose Condition.

/ Comments Off on Spelprogrammering 1, Assignment 1 – Arkanoid remake
Program: Programming

Spelprogrammering 1, Assignment 1 – Arkanoid remake

 

Me and Oskar Lidh Frykmark are doing a remake of Arkanoid. We looked at a version of the game and decided what we needed to do.
Gameobjects:
Paddle,
Blocks,
Score (GUI)
Lives (GUI)
Ball,
Optional:
Particle Effects,
Power-Ups/Downs
Things that needs to be done:
Collision,
Score Counter,
Victory/Loose Condition.

/ Comments Off on Spelprogrammering 1, Assignment 1 – Arkanoid remake
Program: Programming

Spelprogrammering 1, Assignment 1 – Arkanoid remake

 

Me and Oskar Lidh Frykmark are doing a remake of Arkanoid. We looked at a version of the game and decided what we needed to do.
Gameobjects:
Paddle,
Blocks,
Score (GUI)
Lives (GUI)
Ball,
Optional:
Particle Effects,
Power-Ups/Downs
Things that needs to be done:
Collision,
Score Counter,
Victory/Loose Condition.

/ Comments Off on Spelprogrammering 1, Assignment 1 – Arkanoid remake
Program: Programming

Spelprogrammering 1, Assignment 1 – Arkanoid remake

 

Me and Oskar Lidh Frykmark are doing a remake of Arkanoid. We looked at a version of the game and decided what we needed to do.
Gameobjects:
Paddle,
Blocks,
Score (GUI)
Lives (GUI)
Ball,
Optional:
Particle Effects,
Power-Ups/Downs
Things that needs to be done:
Collision,
Score Counter,
Victory/Loose Condition.

/ Comments Off on Spelprogrammering 1, Assignment 1 – Arkanoid remake
Program: Programming