Browsing 'Programming': Posts from Game Design and Programming

Assignment part one, part two

Binary Search Tree
I’m doing the rest of part one of the assignment today, the binary search tree.
In my recent post I explained my linked list and what a binary search tree is. I’ll just link the wikipedia link to a binary search tree here if you want to read about them before I explain how I made mine.Binary Search Tree
It is a template class with T as the template type meaning basically […]

/ Comments Off on Assignment part one, part two
Program: Programming

Assignment part one, part two

Binary Search Tree
I’m doing the rest of part one of the assignment today, the binary search tree.
In my recent post I explained my linked list and what a binary search tree is. I’ll just link the wikipedia link to a binary search tree here if you want to read about them before I explain how I made mine.Binary Search Tree
It is a template class with T as the template type meaning basically […]

/ Comments Off on Assignment part one, part two
Program: Programming

Week 2 gameprogramming I

The second week of the course and I am starting to understand the C++ programming structure. I have a long way to go but this week I got one step closer to creating a game!
The focus on my side is to learn “for” loops and how to get functions outside main to work and in what order i should code the functions. I have also learned how to get random values and sort them, how to make a small random […]

/ Comments Off on Week 2 gameprogramming I
Program: Programming

Week 2 gameprogramming I

The second week of the course and I am starting to understand the C++ programming structure. I have a long way to go but this week I got one step closer to creating a game!
The focus on my side is to learn “for” loops and how to get functions outside main to work and in what order i should code the functions. I have also learned how to get random values and sort them, how to make a small random […]

/ Comments Off on Week 2 gameprogramming I
Program: Programming

3D2 The next step

Hi!
I haven’t been posting anything for two weeks and this is mostly because i wanted to take a short brake after the previous courses where we had a lot to do, but i haven’t been doing nothing and for those who are interested you can see my drawing progress if you follow my Instagram.
Anyways, this week we have been going through texturing and how to apply it in games. The assignment for this week was to […]

/ Comments Off on 3D2 The next step
Program: Programming

3D2 The next step

Hi!
I haven’t been posting anything for two weeks and this is mostly because i wanted to take a short brake after the previous courses where we had a lot to do, but i haven’t been doing nothing and for those who are interested you can see my drawing progress if you follow my Instagram.
Anyways, this week we have been going through texturing and how to apply it in games. The assignment for this week was to […]

/ Comments Off on 3D2 The next step
Program: Programming

Programming 3 second week.

This is the second blog post of programming 3. What I am going to talk about today is about networking, mainly about receiving packages from peers. Throughout the week the class has been creating a simple (not that simple) chat program. To start with you have to activate WSA data and then sockets in order to start networking. When receiving packages the program must also determine what to do with the package and peers. Therefore a basic networking program requires […]

/ Comments Off on Programming 3 second week.
Program: Programming

Programming 3 second week.

This is the second blog post of programming 3. What I am going to talk about today is about networking, mainly about receiving packages from peers. Throughout the week the class has been creating a simple (not that simple) chat program. To start with you have to activate WSA data and then sockets in order to start networking. When receiving packages the program must also determine what to do with the package and peers. Therefore a basic networking program requires […]

/ Comments Off on Programming 3 second week.
Program: Programming

Programming 3 second week.

This is the second blog post of programming 3. What I am going to talk about today is about networking, mainly about receiving packages from peers. Throughout the week the class has been creating a simple (not that simple) chat program. To start with you have to activate WSA data and then sockets in order to start networking. When receiving packages the program must also determine what to do with the package and peers. Therefore a basic networking program requires […]

/ Comments Off on Programming 3 second week.
Program: Programming

Programming 3 second week.

This is the second blog post of programming 3. What I am going to talk about today is about networking, mainly about receiving packages from peers. Throughout the week the class has been creating a simple (not that simple) chat program. To start with you have to activate WSA data and then sockets in order to start networking. When receiving packages the program must also determine what to do with the package and peers. Therefore a basic networking program requires […]

/ Comments Off on Programming 3 second week.
Program: Programming

My first Webserver!,*cough*…kind of.

So this week I have been working on assignment 2, making a web server using C++ and Winsock2 API. It went quite well at the start and in basically one day I got a simple server (if you can call it that) that could handle one connection. I received data from the user and I displayed some text in the web browser to the user.
 

As you can see the browser in the back and in […]

/ Comments Off on My first Webserver!,*cough*…kind of.
Program: Programming

My first Webserver!,*cough*…kind of.

So this week I have been working on assignment 2, making a web server using C++ and Winsock2 API. It went quite well at the start and in basically one day I got a simple server (if you can call it that) that could handle one connection. I received data from the user and I displayed some text in the web browser to the user.
 

As you can see the browser in the back and in […]

/ Comments Off on My first Webserver!,*cough*…kind of.
Program: Programming

It has been a Pong week..

This week has been fully packed with programming! We have gone through pointers and functions and a lot of fun stuff and by the end of the week we learned how to make pong with the sdl library! I am still a bit lost in the SDL library because I am new to it, but I am pretty used to the structure of the code, because I have done similar things in flash. This was a bit messy thought because […]

/ Comments Off on It has been a Pong week..
Program: Programming

It has been a Pong week..

This week has been fully packed with programming! We have gone through pointers and functions and a lot of fun stuff and by the end of the week we learned how to make pong with the sdl library! I am still a bit lost in the SDL library because I am new to it, but I am pretty used to the structure of the code, because I have done similar things in flash. This was a bit messy thought because […]

/ Comments Off on It has been a Pong week..
Program: Programming

Game Programming III Week Two: Network programming

I haven’t really done anything on my personal projects (or assignments) this week, therefore I feel that the only thing  I can write about is what we did on the lectures: an introduction to network programming using sockets.
For the uninitiated, sockets can be somewhat likened to electrical plugs. You decide on a port where you send or receive data, similar to choosing one specific outlet to plug in whatever electrical appliance you might have. You then create a socket and […]

/ Comments Off on Game Programming III Week Two: Network programming
Program: Programming

Game Programming III Week Two: Network programming

I haven’t really done anything on my personal projects (or assignments) this week, therefore I feel that the only thing  I can write about is what we did on the lectures: an introduction to network programming using sockets.
For the uninitiated, sockets can be somewhat likened to electrical plugs. You decide on a port where you send or receive data, similar to choosing one specific outlet to plug in whatever electrical appliance you might have. You then create a socket and […]

/ Comments Off on Game Programming III Week Two: Network programming
Program: Programming

Game Programming III Week Two: Network programming

I haven’t really done anything on my personal projects (or assignments) this week, therefore I feel that the only thing  I can write about is what we did on the lectures: an introduction to network programming using sockets.
For the uninitiated, sockets can be somewhat likened to electrical plugs. You decide on a port where you send or receive data, similar to choosing one specific outlet to plug in whatever electrical appliance you might have. You then create a socket and […]

/ Comments Off on Game Programming III Week Two: Network programming
Program: Programming

Game Programming III Week Two: Network programming

I haven’t really done anything on my personal projects (or assignments) this week, therefore I feel that the only thing  I can write about is what we did on the lectures: an introduction to network programming using sockets.
For the uninitiated, sockets can be somewhat likened to electrical plugs. You decide on a port where you send or receive data, similar to choosing one specific outlet to plug in whatever electrical appliance you might have. You then create a socket and […]

/ Comments Off on Game Programming III Week Two: Network programming
Program: Programming

Programming Blog – Week 2

This week I created my linked list for the first assignment of this course.
The first idea I had for this was a struct Node shown below.
struct Node {
int data;
Node *next;
}
Then I had to tackle the problem of having several Nodes and where to store them, and while thinking of using actual std::lists or vectors a friend told me that I only needed to define the root-node and the rest would just be layered through the Node *next without needing a way […]

/ Comments Off on Programming Blog – Week 2
Program: Programming

Programming Blog – Week 2

This week I created my linked list for the first assignment of this course.
The first idea I had for this was a struct Node shown below.
struct Node {
int data;
Node *next;
}
Then I had to tackle the problem of having several Nodes and where to store them, and while thinking of using actual std::lists or vectors a friend told me that I only needed to define the root-node and the rest would just be layered through the Node *next without needing a way […]

/ Comments Off on Programming Blog – Week 2
Program: Programming

Programming Blog – Week 2

This week I created my linked list for the first assignment of this course.
A linked list is essentialy a number of nodes containing its data as well as having a pointer to the next node in the list.
The first idea I had for this was a struct Node shown below.
struct Node {
int data;
Node *next;
}
Then I had to tackle the problem of having several Nodes and where to store them, and while thinking of using actual std::lists or vectors a friend told me that I […]

/ Comments Off on Programming Blog – Week 2
Program: Programming

Programming Blog – Week 2

This week I created my linked list for the first assignment of this course.
A linked list is essentialy a number of nodes containing its data as well as having a pointer to the next node in the list.
The first idea I had for this was a struct Node shown below.
struct Node {
int data;
Node *next;
}
Then I had to tackle the problem of having several Nodes and where to store them, and while thinking of using actual std::lists or vectors a friend told me that I […]

/ Comments Off on Programming Blog – Week 2
Program: Programming

Second week and Pointers!

This week we have gone through some new things that I have never actually done before. The main thing being pointers and memory allocation. Arrays and functions were also brought up, but I already knew the basics around these. Another thing that we learnt was type casting. I have always used the C way of casting, for example (float)variable, but the right way to do it in C++ is to type static_cast(variable); to cast the variable to a float value.
Memory allocation is something […]

/ Comments Off on Second week and Pointers!
Program: Programming

Second week and Pointers!

This week we have gone through some new things that I have never actually done before. The main thing being pointers and memory allocation. Arrays and functions were also brought up, but I already knew the basics around these. Another thing that we learnt was type casting. I have always used the C way of casting, for example (float)variable, but the right way to do it in C++ is to type static_cast(variable); to cast the variable to a float value.
Memory allocation is something […]

/ Comments Off on Second week and Pointers!
Program: Programming