Browsing 'Programming': Posts from Game Design and Programming

Web Servers!

This blog post and probably the next one will be about winsock servers.
Winsock like many other ways to code servers is a hassle and are not worth the trouble unless you are seriously considering creating one.
This post will only outline my idea of how the server is going to be designed in a simple way to interact with a user trying to connect to the server.
I will show some code but as I am only at the accept phase I […]

/ Comments Off on Web Servers!
Program: Programming

Web Servers!

This blog post and probably the next one will be about winsock servers.
Winsock like many other ways to code servers is a hassle and are not worth the trouble unless you are seriously considering creating one.
This post will only outline my idea of how the server is going to be designed in a simple way to interact with a user trying to connect to the server.
I will show some code but as I am only at the accept phase I […]

/ Comments Off on Web Servers!
Program: Programming

Planning the next step. (Week 49)

So this week I haven’t done much actual programming. I have just been reading up about different programming patterns and I have also been planning about how to create a server solution for the game we need to make in assignment 3.
Making a game with a multiplayer solution is only needed if you aim for a higher grade, which I do.
So I’m reading up about different things to think about when it comes to game networking. I first […]

/ Comments Off on Planning the next step. (Week 49)
Program: Programming

Planning the next step. (Week 49)

So this week I haven’t done much actual programming. I have just been reading up about different programming patterns and I have also been planning about how to create a server solution for the game we need to make in assignment 3.
Making a game with a multiplayer solution is only needed if you aim for a higher grade, which I do.
So I’m reading up about different things to think about when it comes to game networking. I first […]

/ Comments Off on Planning the next step. (Week 49)
Program: Programming

Android Game: Magnetos

These past few days I organized and hosted a weekend long game jam, namely Gotland Game Jam HT 14. While not helping participants out with their games or generally making sure things went smoothly, I made a game by myself.
I took this opportunity to try out the new UI system in Unity 4.6, turns out it was pretty nice overall. There’s a lot of similarities with NGUI in how things are set up, but they differ greatly in implementation. The […]

/ Comments Off on Android Game: Magnetos
Program: Programming

Android Game: Magnetos

These past few days I organized and hosted a weekend long game jam, namely Gotland Game Jam HT 14. While not helping participants out with their games or generally making sure things went smoothly, I made a game by myself.
I took this opportunity to try out the new UI system in Unity 4.6, turns out it was pretty nice overall. There’s a lot of similarities with NGUI in how things are set up, but they differ greatly in implementation. The […]

/ Comments Off on Android Game: Magnetos
Program: Programming

Programming III Week 4

This week we have textured out first cube, illuminated it and we have created a simple icon to place on our UI.
To create the shading on out cube we used a technique called Phong shading. To create a reflection that looks realistic enough we have to illuminate out box in three different ways, first off we need to apply the ambient lighting, this light doesn’t have a source and it will illuminate the model the exact same way from all […]

/ Comments Off on Programming III Week 4
Program: Programming

Programming III Week 4

This week we have textured out first cube, illuminated it and we have created a simple icon to place on our UI.
To create the shading on out cube we used a technique called Phong shading. To create a reflection that looks realistic enough we have to illuminate out box in three different ways, first off we need to apply the ambient lighting, this light doesn’t have a source and it will illuminate the model the exact same way from all […]

/ Comments Off on Programming III Week 4
Program: Programming

Programming III Week 4

This week we have textured out first cube, illuminated it and we have created a simple icon to place on our UI.
To create the shading on out cube we used a technique called Phong shading. To create a reflection that looks realistic enough we have to illuminate out box in three different ways, first off we need to apply the ambient lighting, this light doesn’t have a source and it will illuminate the model the exact same way from all […]

/ Comments Off on Programming III Week 4
Program: Programming

Programming III Week 4

This week we have textured out first cube, illuminated it and we have created a simple icon to place on our UI.
To create the shading on out cube we used a technique called Phong shading. To create a reflection that looks realistic enough we have to illuminate out box in three different ways, first off we need to apply the ambient lighting, this light doesn’t have a source and it will illuminate the model the exact same way from all […]

/ Comments Off on Programming III Week 4
Program: Programming

Web server finished

The programming adventures continue! I finished the second assignment (a web server built from scratch), which hopefully gets a pass, which would allow me to put all focus into the last assignment!
First of all, I apologize for not writing a post the week before this. I was exhibiting Flash & Crash at DreamHack Winter, and never really found the time to sit down and write a post. When I got home on the Monday, I had forgotten about it.
So yeah, […]

/ Comments Off on Web server finished
Program: Programming

Web server finished

The programming adventures continue! I finished the second assignment (a web server built from scratch), which hopefully gets a pass, which would allow me to put all focus into the last assignment!
First of all, I apologize for not writing a post the week before this. I was exhibiting Flash & Crash at DreamHack Winter, and never really found the time to sit down and write a post. When I got home on the Monday, I had forgotten about it.
So yeah, […]

/ Comments Off on Web server finished
Program: Programming

Weekly programming – The “client” concept (v49)

I’d like to describe a concept connected to code structure this week. I was introduced to this concept in a book I’m currently reading called “More Effective C++: 35 ways to improve your programs and designs” by Scott Meyers. It’s an optional book for our current course in programming.

The concept in a nutshell is making classes with it’s “clients” in mind. Clients are the programmers (perhaps yourself included) and other classes or parts of the code that will use the said class. You might […]

/ Comments Off on Weekly programming – The “client” concept (v49)
Program: Programming

Weekly programming – The “client” concept (v49)

I’d like to describe a concept connected to code structure this week. I was introduced to this concept in a book I’m currently reading called “More Effective C++: 35 ways to improve your programs and designs” by Scott Meyers. It’s an optional book for our current course in programming.

The concept in a nutshell is making classes with it’s “clients” in mind. Clients are the programmers (perhaps yourself included) and other classes or parts of the code that will use the said class. You might […]

/ Comments Off on Weekly programming – The “client” concept (v49)
Program: Programming

Weekly programming – The “client” concept (v49)

I’d like to describe a concept connected to code structure this week. I was introduced to this concept in a book I’m currently reading called “More Effective C++: 35 ways to improve your programs and designs” by Scott Meyers. It’s an optional book for our current course in programming.

The concept in a nutshell is making classes with it’s “clients” in mind. Clients are the programmers (perhaps yourself included) and other classes or parts of the code that will use the said class. You might […]

/ Comments Off on Weekly programming – The “client” concept (v49)
Program: Programming

Weekly programming – The “client” concept (v49)

I’d like to describe a concept connected to code structure this week. I was introduced to this concept in a book I’m currently reading called “More Effective C++: 35 ways to improve your programs and designs” by Scott Meyers. It’s an optional book for our current course in programming.

The concept in a nutshell is making classes with it’s “clients” in mind. Clients are the programmers (perhaps yourself included) and other classes or parts of the code that will use the said class. You might […]

/ Comments Off on Weekly programming – The “client” concept (v49)
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

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

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