Browsing 'Game Design': Posts from either of the Game Design programs
Programming – Week 2
This week we worked with pointers in C++. You create a pointer by adding a
” * ” at the end of the data type. Pointers works just like the name describes, it points towards a memory address instead of a value. To access a variables memory address you add ” & ” in front of the variable name. To access the value of a pointer you can use ” * ” in front of the pointer variable.
This is an example […]
Programming – Week 2
This week we worked with pointers in C++. You create a pointer by adding a
” * ” at the end of the data type. Pointers works just like the name describes, it points towards a memory address instead of a value. To access a variables memory address you add ” & ” in front of the variable name. To access the value of a pointer you can use ” * ” in front of the pointer variable.
This is an example […]
Programming: Week 2 (cont.)
Ex. 10
Write a program that generates a random symbolic game map that contains characters. Use the following characters:
# represents a wall
& represents a tree
_ represents walkable area
This one is simple. Since we need to randomly choose one of 3 options, we generate an integer from the interval [0;2] (or [1;3], it doesn’t change anything).
#include
#include
#include
int random()
{
return rand() % 2;
}
int main(int argc, char* argv[]){
std::cout << std::endl;
srand((unsigned int)time(0));
for (int i = 0; i < 9; i++)
{
std::cout << " ";
for […]
Programming: Week 2 (cont.)
Ex. 10
Write a program that generates a random symbolic game map that contains characters. Use the following characters:
# represents a wall
& represents a tree
_ represents walkable area
This one is simple. Since we need to randomly choose one of 3 options, we generate an integer from the interval [0;2] (or [1;3], it doesn’t change anything).
#include
#include
#include
int random()
{
return rand() % 2;
}
int main(int argc, char* argv[]){
std::cout << std::endl;
srand((unsigned int)time(0));
for (int i = 0; i < 9; i++)
{
std::cout << " ";
for […]
Week 2
The second week or introduction to arrays,functions and memory, and this week only, start learning sdl(Simple direct-media layer).
This week has been full of interesting and useful things to learn.
First of is the functions that are the building blocks of programs/classes,constantly being used and reused as well as creating the different things you need to create the program.
Then there is arrays to hold many things in memory instead of having to create a variable for each thing you want to save […]
Week 2
The second week or introduction to arrays,functions and memory, and this week only, start learning sdl(Simple direct-media layer).
This week has been full of interesting and useful things to learn.
First of is the functions that are the building blocks of programs/classes,constantly being used and reused as well as creating the different things you need to create the program.
Then there is arrays to hold many things in memory instead of having to create a variable for each thing you want to save […]
Game Programming III – Blog Post 2
Late as usual, here’s my post about this week.
There’s been a lot of progress and new things in the network programming. Actually too much for me to write about here on a whim, but I’ll get right to it when I start on the second assignment which will be all about network programming.
Anyway, I’m pretty much done with my linked list, meaning that the very first assignment is halfway done. It took a little longer than I thought mainly […]
Game Programming III – Blog Post 2
Late as usual, here’s my post about this week.
There’s been a lot of progress and new things in the network programming. Actually too much for me to write about here on a whim, but I’ll get right to it when I start on the second assignment which will be all about network programming.
Anyway, I’m pretty much done with my linked list, meaning that the very first assignment is halfway done. It took a little longer than I thought mainly […]
Engine Design – Debug Console
I’m currently working on my own game engine and while it’s no where near from being finished, I’ve applied a couple of design patterns when creating the different systems. In the coming weeks I’ll go through a system each at a time and write about how I have implemented them and what problems I might have stumbled upon.
This week’s system is the debug console which I regularly use when debugging or changing stuff on the fly in-engine.
The debug console […]
Engine Design – Debug Console
I’m currently working on my own game engine and while it’s no where near from being finished, I’ve applied a couple of design patterns when creating the different systems. In the coming weeks I’ll go through a system each at a time and write about how I have implemented them and what problems I might have stumbled upon.
This week’s system is the debug console which I regularly use when debugging or changing stuff on the fly in-engine.
The debug console […]
Perspective
Week 2 assignment was about drawing a car and an airplane in a same 2 perspective grid. For me it went okey, the only really hard part was when it came to the wheel on the car. The circles are hard to get right. I found a tutorial video on youtube that I followed on how to make a circle in 2 perspective, this helped me a little but I am not sure I got it right. Also I think […]
Perspective
Week 2 assignment was about drawing a car and an airplane in a same 2 perspective grid. For me it went okey, the only really hard part was when it came to the wheel on the car. The circles are hard to get right. I found a tutorial video on youtube that I followed on how to make a circle in 2 perspective, this helped me a little but I am not sure I got it right. Also I think […]
Perspective
Week 2 assignment was about drawing a car and an airplane in a same 2 perspective grid. For me it went okey, the only really hard part was when it came to the wheel on the car. The circles are hard to get right. I found a tutorial video on youtube that I followed on how to make a circle in 2 perspective, this helped me a little but I am not sure I got it right. Also I think […]
Perspective
Week 2 assignment was about drawing a car and an airplane in a same 2 perspective grid. For me it went okey, the only really hard part was when it came to the wheel on the car. The circles are hard to get right. I found a tutorial video on youtube that I followed on how to make a circle in 2 perspective, this helped me a little but I am not sure I got it right. Also I think […]
Game programming 1, week 1
Hello world!
Last week (the week of november the 10th) the first programming course began but since this is my first blog post a short introduction may be needed.
My name is Ludvig Normelli and I’m a game design and programming student at Uppsala university campus gotland. I have never blogged before so this is a new experience for me. The idea is that this blog will be a place which feature my thoughts about school projects or just school work in […]
Game programming 1, week 1
Hello world!
Last week (the week of november the 10th) the first programming course began but since this is my first blog post a short introduction may be needed.
My name is Ludvig Normelli and I’m a game design and programming student at Uppsala university campus gotland. I have never blogged before so this is a new experience for me. The idea is that this blog will be a place which feature my thoughts about school projects or just school work in […]
Game programming 1, week 1
Hello world!
Last week (the week of november the 10th) the first programming course began but since this is my first blog post a short introduction may be needed.
My name is Ludvig Normelli and I’m a game design and programming student at Uppsala university campus gotland. I have never blogged before so this is a new experience for me. The idea is that this blog will be a place which feature my thoughts about school projects or just school work in […]
Game programming 1, week 1
Hello world!
Last week (the week of november the 10th) the first programming course began but since this is my first blog post a short introduction may be needed.
My name is Ludvig Normelli and I’m a game design and programming student at Uppsala university campus gotland. I have never blogged before so this is a new experience for me. The idea is that this blog will be a place which feature my thoughts about school projects or just school work in […]
Working with perspective
In the week that was we learned about perspective. About how important perspective is to show what is infront of what and how far away something is in a picture. This is a subject I havent thought about very much because when you look at a good picture with correct perspective everything feels normal and looks correctly. But when you try to draw the same image yourself without the knowledge about perspective, that is when you understand how important it […]
Working with perspective
In the week that was we learned about perspective. About how important perspective is to show what is infront of what and how far away something is in a picture. This is a subject I havent thought about very much because when you look at a good picture with correct perspective everything feels normal and looks correctly. But when you try to draw the same image yourself without the knowledge about perspective, that is when you understand how important it […]
Linked List
Warning: This post will contain video game blood.
OK so this time I’ll be talking about how to make an linked list from scratch.
I’ll be using VS 2014 with c++ syntax(might be some C involved here).
Linked list in programming terms are(but can be something else!) a series of nodes which carry a data and a pointer.
These nodes make up a list where each node looks in front of them so you can traverse in a line to find what you need […]
Linked List
Warning: This post will contain video game blood.
OK so this time I’ll be talking about how to make an linked list from scratch.
I’ll be using VS 2014 with c++ syntax(might be some C involved here).
Linked list in programming terms are(but can be something else!) a series of nodes which carry a data and a pointer.
These nodes make up a list where each node looks in front of them so you can traverse in a line to find what you need […]
Linked List
Warning: This post will contain video game blood.
OK so this time I’ll be talking about how to make an linked list from scratch.
I’ll be using VS 2014 with c++ syntax(might be some C involved here).
Linked list in programming terms are(but can be something else!) a series of nodes which carry a data and a pointer.
These nodes make up a list where each node looks in front of them so you can traverse in a line to find what you need […]
Linked List
Warning: This post will contain video game blood.
OK so this time I’ll be talking about how to make an linked list from scratch.
I’ll be using VS 2014 with c++ syntax(might be some C involved here).
Linked list in programming terms are(but can be something else!) a series of nodes which carry a data and a pointer.
These nodes make up a list where each node looks in front of them so you can traverse in a line to find what you need […]