Yearly Archives: 2014

Clean line

This week we continue to work with our character and our assignment was to clean up the character and give it clean lines.
I rushed it a bit since I did not plan my work too good.
This is how it turned out.

/ Comments Off on Clean line
Program: Graphics

Clean line

This week we continue to work with our character and our assignment was to clean up the character and give it clean lines.
I rushed it a bit since I did not plan my work too good.
This is how it turned out.

/ Comments Off on Clean line
Program: Graphics

Programming 3 Lighting

Hello, this week we have been going through how to properly render something in dirextX, there are several things to be considered. In my recent post I talked about creating a box and how we calculate it. But in order to make our box act as if it were in the real world there are a few things we must code, a light source is one major aspect in order to get an object to feel more real.
In directX there […]

/ Comments Off on Programming 3 Lighting
Program: Programming

Programming 3 Lighting

Hello, this week we have been going through how to properly render something in dirextX, there are several things to be considered. In my recent post I talked about creating a box and how we calculate it. But in order to make our box act as if it were in the real world there are a few things we must code, a light source is one major aspect in order to get an object to feel more real.
In directX there […]

/ Comments Off on Programming 3 Lighting
Program: Programming

Programming 3 Lighting

Hello, this week we have been going through how to properly render something in dirextX, there are several things to be considered. In my recent post I talked about creating a box and how we calculate it. But in order to make our box act as if it were in the real world there are a few things we must code, a light source is one major aspect in order to get an object to feel more real.
In directX there […]

/ Comments Off on Programming 3 Lighting
Program: Programming

Programming 3 Lighting

Hello, this week we have been going through how to properly render something in dirextX, there are several things to be considered. In my recent post I talked about creating a box and how we calculate it. But in order to make our box act as if it were in the real world there are a few things we must code, a light source is one major aspect in order to get an object to feel more real.
In directX there […]

/ Comments Off on Programming 3 Lighting
Program: Programming

Halvfungerande 5 kort pokersimulator

Skiljer mellan poänghänder, men inte mellan olika valörer av samma typ av poänghand (förutom olika ”High cards”)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//main
#include
#include
#include ”validate.h”
#include ”card.h”
#include ”deck.h”
#include ”hand.h”
int main(int argc, char* argv[])
{
Deck deck;
Card card;
Validate validate;
Hand playerOne;
Hand playerTwo;
int PlayerOneScore = 0;
int PlayerTwoScore = 0;
for (int i = 0; i != 4;)
{
std::cout << ”1. Shuffle (recommended) n2. Play two player match! n3. Display score nExit” << std::endl; // menu
std::cin >> i;
switch (i)
{
case 1:
{
deck.Shuffle(); // shuffle
std::cout << ”Shuffled..” << std::endl;
break;
}
case 2:
{
std::cout << ”Dealing.. ” << std::endl; //deal cards
for […]

/ Comments Off on Halvfungerande 5 kort pokersimulator
Program: Programming

Halvfungerande 5 kort pokersimulator

Skiljer mellan poänghänder, men inte mellan olika valörer av samma typ av poänghand (förutom olika ”High cards”)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//main
#include
#include
#include ”validate.h”
#include ”card.h”
#include ”deck.h”
#include ”hand.h”
int main(int argc, char* argv[])
{
Deck deck;
Card card;
Validate validate;
Hand playerOne;
Hand playerTwo;
int PlayerOneScore = 0;
int PlayerTwoScore = 0;
for (int i = 0; i != 4;)
{
std::cout << ”1. Shuffle (recommended) n2. Play two player match! n3. Display score nExit” << std::endl; // menu
std::cin >> i;
switch (i)
{
case 1:
{
deck.Shuffle(); // shuffle
std::cout << ”Shuffled..” << std::endl;
break;
}
case 2:
{
std::cout << ”Dealing.. ” << std::endl; //deal cards
for […]

/ Comments Off on Halvfungerande 5 kort pokersimulator
Program: Programming

Weak four (on my part)

This week has been purely about how to use the SDL library and about dividing things into appropriate classes as a foundation of games. That means we have one class for starting everything, one class for drawing everything on the screen, one class for handling states, etc… We learned to handle input from mouse and keyboard, we learned how to make a core loop of clearing screen drawing screen and presenting screen and lastly we larned about states, which was […]

/ Comments Off on Weak four (on my part)
Program: Programming

Weak four (on my part)

This week has been purely about how to use the SDL library and about dividing things into appropriate classes as a foundation of games. That means we have one class for starting everything, one class for drawing everything on the screen, one class for handling states, etc… We learned to handle input from mouse and keyboard, we learned how to make a core loop of clearing screen drawing screen and presenting screen and lastly we larned about states, which was […]

/ Comments Off on Weak four (on my part)
Program: Programming

switch (5 in a Row) – WIP


This week has been filled with new terms like Polymorphism, friend classes, virtual methods, forward declare, finite state machines… My brain feels melted. As a novice programmer these things may need some time to fully understand.
To help find my confidence again I decided to create a simple code for the game ”5 in a row”. Originally it’s a board game where two players by turns drop bricks on the top of the board where you can see the pieces […]

/ Comments Off on switch (5 in a Row) – WIP
Program: Programming

switch (5 in a Row) – WIP


This week has been filled with new terms like Polymorphism, friend classes, virtual methods, forward declare, finite state machines… My brain feels melted. As a novice programmer these things may need some time to fully understand.
To help find my confidence again I decided to create a simple code for the game ”5 in a row”. Originally it’s a board game where two players by turns drop bricks on the top of the board where you can see the pieces […]

/ Comments Off on switch (5 in a Row) – WIP
Program: Programming

switch (5 in a Row) – WIP


This week has been filled with new terms like Polymorphism, friend classes, virtual methods, forward declare, finite state machines… My brain feels melted. As a novice programmer these things may need some time to fully understand.
To help find my confidence again I decided to create a simple code for the game ”5 in a row”. Originally it’s a board game where two players by turns drop bricks on the top of the board where you can see the pieces […]

/ Comments Off on switch (5 in a Row) – WIP
Program: Programming

switch (5 in a Row) – WIP


This week has been filled with new terms like Polymorphism, friend classes, virtual methods, forward declare, finite state machines… My brain feels melted. As a novice programmer these things may need some time to fully understand.
To help find my confidence again I decided to create a simple code for the game ”5 in a row”. Originally it’s a board game where two players by turns drop bricks on the top of the board where you can see the pieces […]

/ Comments Off on switch (5 in a Row) – WIP
Program: Programming

Programming Week 4

This week we started building on our second game – Arkanoid. This project is a bit more complex though since we’re actually building this game from scratch. Our teacher is livecoding while going through each line of code, it’s interesting but very hard!
We’ve learned more about inheritance, which is that you can create an original class, and then you can create another class which can inherit the original class’ values.
We have also started discussing something new – Polymorphism, which is what […]

/ Comments Off on Programming Week 4
Program: Programming

Programming Week 4

This week we started building on our second game – Arkanoid. This project is a bit more complex though since we’re actually building this game from scratch. Our teacher is livecoding while going through each line of code, it’s interesting but very hard!
We’ve learned more about inheritance, which is that you can create an original class, and then you can create another class which can inherit the original class’ values.
We have also started discussing something new – Polymorphism, which is what […]

/ Comments Off on Programming Week 4
Program: Programming

Programming Week 4

This week we started building on our second game – Arkanoid. This project is a bit more complex though since we’re actually building this game from scratch. Our teacher is livecoding while going through each line of code, it’s interesting but very hard!
We’ve learned more about inheritance, which is that you can create an original class, and then you can create another class which can inherit the original class’ values.
We have also started discussing something new – Polymorphism, which is what […]

/ Comments Off on Programming Week 4
Program: Programming

Programming Week 4

This week we started building on our second game – Arkanoid. This project is a bit more complex though since we’re actually building this game from scratch. Our teacher is livecoding while going through each line of code, it’s interesting but very hard!
We’ve learned more about inheritance, which is that you can create an original class, and then you can create another class which can inherit the original class’ values.
We have also started discussing something new – Polymorphism, which is what […]

/ Comments Off on Programming Week 4
Program: Programming

Game Programming III – the fourth week, webserver part one (1)


Hello!
This week I’ve been mostly working on the second assignment for this course, which is to make a simple web server. The web server needs to use the TCP protocol and handle HTTP/1.1 headers. The first thing you need to make a web server is to make a socket for it. A socket is, in short, an IP adress and a port number that are bound together to make an endpoint for communication over a network. I will make use […]

/ Comments Off on Game Programming III – the fourth week, webserver part one (1)
Program: Programming

Game Programming III – the fourth week, webserver part one (1)


Hello!
This week I’ve been mostly working on the second assignment for this course, which is to make a simple web server. The web server needs to use the TCP protocol and handle HTTP/1.1 headers. The first thing you need to make a web server is to make a socket for it. A socket is, in short, an IP adress and a port number that are bound together to make an endpoint for communication over a network. I will make use […]

/ Comments Off on Game Programming III – the fourth week, webserver part one (1)
Program: Programming

Game Programming III – the fourth week, webserver part one (1)


Hello!
This week I’ve been mostly working on the second assignment for this course, which is to make a simple web server. The web server needs to use the TCP protocol and handle HTTP/1.1 headers. The first thing you need to make a web server is to make a socket for it. A socket is, in short, an IP adress and a port number that are bound together to make an endpoint for communication over a network. I will make use […]

/ Comments Off on Game Programming III – the fourth week, webserver part one (1)
Program: Programming

Game Programming III – the fourth week, webserver part one (1)


Hello!
This week I’ve been mostly working on the second assignment for this course, which is to make a simple web server. The web server needs to use the TCP protocol and handle HTTP/1.1 headers. The first thing you need to make a web server is to make a socket for it. A socket is, in short, an IP adress and a port number that are bound together to make an endpoint for communication over a network. I will make use […]

/ Comments Off on Game Programming III – the fourth week, webserver part one (1)
Program: Programming

Arkanoid and Gamestates

This week began a new task: building the classic game Arkanoid. Following the lead of our lecturer the group wrote down the necessary classes and functions needed for the game, dividing the classes in separate files. SDL (Simple DirectMedia Library) was selected as graphical library for this project.
Arkanoid was developed by Taito in 1986, and was based on the game Breakout from Atari, inc. and released 1976. Breakout was built by Steve Wozniak (Co-founder of Apple, and inventor and designer […]

/ Comments Off on Arkanoid and Gamestates
Program: Programming

Arkanoid and Gamestates

This week began a new task: building the classic game Arkanoid. Following the lead of our lecturer the group wrote down the necessary classes and functions needed for the game, dividing the classes in separate files. SDL (Simple DirectMedia Library) was selected as graphical library for this project.
Arkanoid was developed by Taito in 1986, and was based on the game Breakout from Atari, inc. and released 1976. Breakout was built by Steve Wozniak (Co-founder of Apple, and inventor and designer […]

/ Comments Off on Arkanoid and Gamestates
Program: Programming