Browsing '2014 ': Students starting in 2014

2D-graphics, theory and application I – Week 3

Third week of the course we continued with life drawing and refining our character concept. We did more life drawing, this time with a male model and went through, amongst other things, what the muscles on the leg look like, how the knee is constructed, how to draw feet and how to draw heads and faces.
My legs generally turned out too long this week and the teacher reminded me that there is equal distance between the top of the head […]

/ Comments Off on 2D-graphics, theory and application I – Week 3
Program: Graphics

2D-graphics, theory and application I – Week 3

Third week of the course we continued with life drawing and refining our character concept. We did more life drawing, this time with a male model and went through, amongst other things, what the muscles on the leg look like, how the knee is constructed, how to draw feet and how to draw heads and faces.
My legs generally turned out too long this week and the teacher reminded me that there is equal distance between the top of the head […]

/ Comments Off on 2D-graphics, theory and application I – Week 3
Program: Graphics

2D-graphics, theory and application I – Week 2

During our second week we were working with perspective. Reading materials this week were mainly David Chelsea’s “Perspective for Comic Book Artists”. We went through the basics of drawing 1-point, 2-point and 3-point perspective plus drawing ellipses in perspective.
Our assignment this week was to draw an airplane in the sky and a car on the ground in the same scene using two-point perspective and then write a reflection about what difficulties we had with the assignment.
So yeah I drew this:

Not particularly proud of it, […]

/ Comments Off on 2D-graphics, theory and application I – Week 2
Program: Graphics

2D-graphics, theory and application I – Week 2

During our second week we were working with perspective. Reading materials this week were mainly David Chelsea’s “Perspective for Comic Book Artists”. We went through the basics of drawing 1-point, 2-point and 3-point perspective plus drawing ellipses in perspective.
Our assignment this week was to draw an airplane in the sky and a car on the ground in the same scene using two-point perspective and then write a reflection about what difficulties we had with the assignment.
So yeah I drew this:

Not particularly proud of it, […]

/ Comments Off on 2D-graphics, theory and application I – Week 2
Program: Graphics

2D-graphics, theory and application I – Week 1

First week with the new course 2D-graphics, theory and application I. This week we started with life drawing first to learn to quickly capture the movement and dynamic of a pose and then constructing it with the basic shapes that make up the human body. I haven’t done life drawing before and the principles we learned this week resolved a lot of issues for me, like creating more interesting poses for my characters and quickly capturing the essence of a […]

/ Comments Off on 2D-graphics, theory and application I – Week 1
Program: Graphics

2D-graphics, theory and application I – Week 1

First week with the new course 2D-graphics, theory and application I. This week we started with life drawing first to learn to quickly capture the movement and dynamic of a pose and then constructing it with the basic shapes that make up the human body. I haven’t done life drawing before and the principles we learned this week resolved a lot of issues for me, like creating more interesting poses for my characters and quickly capturing the essence of a […]

/ Comments Off on 2D-graphics, theory and application I – Week 1
Program: Graphics

Cleaning the character

This week I have worked with making the character that i drew last week look clean. That means that you clean up the lines in the character. Right now they look quite sketchy and the lines are thick and not very precise. Here is the character that I drew last week.

As you can see in the character to the right he looks quite clean at a first look but if you look closer you can see that the lines […]

/ Comments Off on Cleaning the character
Program: Graphics

Cleaning the character

This week I have worked with making the character that i drew last week look clean. That means that you clean up the lines in the character. Right now they look quite sketchy and the lines are thick and not very precise. Here is the character that I drew last week.

As you can see in the character to the right he looks quite clean at a first look but if you look closer you can see that the lines […]

/ Comments Off on Cleaning the character
Program: Graphics

GAME PROGRAMMING I: WEEK FOUR

This week we have been working on a version of Arkanoid, a game where the objective is to destroy blocks with a ball while controlling a paddle.
We have also started our course project where we are to create a clone of a classic game. I have selected to create a clone of The Legend Of Zelda.
To start I have to break down the game to find out what objects are in the game, what properties and behaviours the objects have, […]

/ Comments Off on GAME PROGRAMMING I: WEEK FOUR
Program: Programming

GAME PROGRAMMING I: WEEK FOUR

This week we have been working on a version of Arkanoid, a game where the objective is to destroy blocks with a ball while controlling a paddle.
We have also started our course project where we are to create a clone of a classic game. I have selected to create a clone of The Legend Of Zelda.
To start I have to break down the game to find out what objects are in the game, what properties and behaviours the objects have, […]

/ Comments Off on GAME PROGRAMMING I: WEEK FOUR
Program: Programming

Programming: Week 3 (cont.)

Ex. 3
Write a TemperatureConverter class that handles conversions between Celsius, Fahrenheit and Kelvin. Each conversion mode should have its dedicated method; the user should be able to choose which conversion mode to use.
Here is the program:

#include
#include
#include

class TemperatureConverter
{
public:
void SetTemp(std::string input)//set methods – provide data entered by the user to the Class
{
int n = input.length();
char sist = input.at(n – 1);
float temp_part = std::stof(input.erase(n – 1, 1));
temperature = temp_part;
};
void SetSource(std::string input)
{
int n = input.length();
char sist = input.at(n – 1);
source = […]

/ Comments Off on Programming: Week 3 (cont.)
Program: Programming

Programming: Week 3 (cont.)

Ex. 3
Write a TemperatureConverter class that handles conversions between Celsius, Fahrenheit and Kelvin. Each conversion mode should have its dedicated method; the user should be able to choose which conversion mode to use.
Here is the program:

#include
#include
#include

class TemperatureConverter
{
public:
void SetTemp(std::string input)//set methods – provide data entered by the user to the Class
{
int n = input.length();
char sist = input.at(n – 1);
float temp_part = std::stof(input.erase(n – 1, 1));
temperature = temp_part;
};
void SetSource(std::string input)
{
int n = input.length();
char sist = input.at(n – 1);
source = […]

/ Comments Off on Programming: Week 3 (cont.)
Program: Programming

6.12.14

Den här veckan har vi börjat ordentligt med spelprogrammering. Vi har kört mycket live kodning, att handledaren har skrivit och vi har skrivit av så vi har kunnat gå igenom rad för rad och se hur man bygger upp ett spel. Vi håller på med att återskapa arkanoid men vi är ännu inte riktigt klara, hittills har vi bara som en fungerande mall för att göra ett spel. Något som vi kommer ha användning av i framtiden! Och det är […]

/ Comments Off on 6.12.14
Program: Programming

6.12.14

Den här veckan har vi börjat ordentligt med spelprogrammering. Vi har kört mycket live kodning, att handledaren har skrivit och vi har skrivit av så vi har kunnat gå igenom rad för rad och se hur man bygger upp ett spel. Vi håller på med att återskapa arkanoid men vi är ännu inte riktigt klara, hittills har vi bara som en fungerande mall för att göra ett spel. Något som vi kommer ha användning av i framtiden! Och det är […]

/ Comments Off on 6.12.14
Program: Programming

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

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

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