Author Archives: Semih Parlayan

About Semih Parlayan

2014  Programming

Programming – Week 3

This week I’ve learned how to create classes using header and cpp files.
This is an example of a header named Student
class Student
{
public:
Student(std::string name, int age);

int GetAge();
void SetAge(int newAge);

std::string GetName();
void SetName(std::string newName);

private:
int age;
std::string name;
};
The keyword ”public” describes what functions and variables are accesable from outside the class. All ”private” variables and functions are only accesable inside the class.
Student(std::string name, int age)    is the constructor of the class. The constructor works like a […]

/ Comments Off on Programming – Week 3
Program: Programming

Programming – Week 3

This week I’ve learned how to create classes using header and cpp files.
This is an example of a header named Student
class Student
{
public:
Student(std::string name, int age);

int GetAge();
void SetAge(int newAge);

std::string GetName();
void SetName(std::string newName);

private:
int age;
std::string name;
};
The keyword ”public” describes what functions and variables are accesable from outside the class. All ”private” variables and functions are only accesable inside the class.
Student(std::string name, int age)    is the constructor of the class. The constructor works like a […]

/ Comments Off on Programming – Week 3
Program: Programming

Programming – Week 3

This week I’ve learned how to create classes using header and cpp files.
This is an example of a header named Student
class Student
{
public:
Student(std::string name, int age);

int GetAge();
void SetAge(int newAge);

std::string GetName();
void SetName(std::string newName);

private:
int age;
std::string name;
};
The keyword ”public” describes what functions and variables are accesable from outside the class. All ”private” variables and functions are only accesable inside the class.
Student(std::string name, int age)    is the constructor of the class. The constructor works like a […]

/ Comments Off on Programming – Week 3
Program: Programming

Programming – Week 3

This week I’ve learned how to create classes using header and cpp files.
This is an example of a header named Student
class Student
{
public:
Student(std::string name, int age);

int GetAge();
void SetAge(int newAge);

std::string GetName();
void SetName(std::string newName);

private:
int age;
std::string name;
};
The keyword ”public” describes what functions and variables are accesable from outside the class. All ”private” variables and functions are only accesable inside the class.
Student(std::string name, int age)    is the constructor of the class. The constructor works like a […]

/ Comments Off on Programming – Week 3
Program: Programming

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 […]

/ Comments Off on Programming – Week 2
Program: Programming

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 […]

/ Comments Off on Programming – Week 2
Program: Programming

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 […]

/ Comments Off on Programming – Week 2
Program: Programming

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 […]

/ Comments Off on Programming – Week 2
Program: Programming

Programming – Week 1

This weeks assignments was a bit to easy because I’ve been programming in C# before. I decided to give myself an assignment, Tic Tac Toe.
By creating this game i learned new syntax such as std::string and system(”cls”). I also learned how to create a two dimensional array. In C# you could create one using the datatype and then [ ] for normal array and [ , ] for a two dimensional.
I learned that in C++ you create arrays by typing the […]

/ Comments Off on Programming – Week 1
Program: Programming

Programming – Week 1

This weeks assignments was a bit to easy because I’ve been programming in C# before. I decided to give myself an assignment, Tic Tac Toe.
By creating this game i learned new syntax such as std::string and system(”cls”). I also learned how to create a two dimensional array. In C# you could create one using the datatype and then [ ] for normal array and [ , ] for a two dimensional.
I learned that in C++ you create arrays by typing the […]

/ Comments Off on Programming – Week 1
Program: Programming

Programming – Week 1

This weeks assignments was a bit to easy because I’ve been programming in C# before. I decided to give myself an assignment, Tic Tac Toe.
By creating this game i learned new syntax such as std::string and system(”cls”). I also learned how to create a two dimensional array. In C# you could create one using the datatype and then [ ] for normal array and [ , ] for a two dimensional.
I learned that in C++ you create arrays by typing the […]

/ Comments Off on Programming – Week 1
Program: Programming

Programming – Week 1

This weeks assignments was a bit to easy because I’ve been programming in C# before. I decided to give myself an assignment, Tic Tac Toe.
By creating this game i learned new syntax such as std::string and system(”cls”). I also learned how to create a two dimensional array. In C# you could create one using the datatype and then [ ] for normal array and [ , ] for a two dimensional.
I learned that in C++ you create arrays by typing the […]

/ Comments Off on Programming – Week 1
Program: Programming

Basic gameplay, collectibles and changes to hazards

I’ve continued further on with SlashR. Some small changes have been  made to hazards. Both the arrow trap and ”stone fall” now has a trigger box that triggers when the player enters it. The arrow trap will only start shooting in intervals if the player is within the trigger, the same thing applies to when the stones are released to fall.
Marcus has finished the graphics for the three hazards so I replaced my placeholder graphics and i think it looks awesome. All of the hazards […]

/ Comments Off on Basic gameplay, collectibles and changes to hazards
Program: Programming

Basic gameplay, collectibles and changes to hazards

I’ve continued further on with SlashR. Some small changes have been  made to hazards. Both the arrow trap and ”stone fall” now has a trigger box that triggers when the player enters it. The arrow trap will only start shooting in intervals if the player is within the trigger, the same thing applies to when the stones are released to fall.
Marcus has finished the graphics for the three hazards so I replaced my placeholder graphics and i think it looks awesome. All of the hazards […]

/ Comments Off on Basic gameplay, collectibles and changes to hazards
Program: Programming

Basic gameplay, collectibles and changes to hazards

I’ve continued further on with SlashR. Some small changes have been  made to hazards. Both the arrow trap and ”stone fall” now has a trigger box that triggers when the player enters it. The arrow trap will only start shooting in intervals if the player is within the trigger, the same thing applies to when the stones are released to fall.
Marcus has finished the graphics for the three hazards so I replaced my placeholder graphics and i think it looks awesome. All of the hazards […]

/ Comments Off on Basic gameplay, collectibles and changes to hazards
Program: Programming

Basic gameplay, collectibles and changes to hazards

I’ve continued further on with SlashR. Some small changes have been  made to hazards. Both the arrow trap and ”stone fall” now has a trigger box that triggers when the player enters it. The arrow trap will only start shooting in intervals if the player is within the trigger, the same thing applies to when the stones are released to fall.
Marcus has finished the graphics for the three hazards so I replaced my placeholder graphics and i think it looks awesome. All of the hazards […]

/ Comments Off on Basic gameplay, collectibles and changes to hazards
Program: Programming

My First Jam! 03 October

My First Jam is an event at my University and it works by getting a theme and making a game in a group in about 6-8 hours, this time everybody worked in GameMaker. Me a second year student and some friends from my class was working together in a group of six. The theme everybody got was ”Addiction X”. We started with brainstorming some ideas for a game with addiction. We came up with some different stuff but decided on […]

/ Comments Off on My First Jam! 03 October
Program: Programming

My First Jam! 03 October

My First Jam is an event at my University and it works by getting a theme and making a game in a group in about 6-8 hours, this time everybody worked in GameMaker. Me a second year student and some friends from my class was working together in a group of six. The theme everybody got was ”Addiction X”. We started with brainstorming some ideas for a game with addiction. We came up with some different stuff but decided on […]

/ Comments Off on My First Jam! 03 October
Program: Programming

Hazards – Spikes and arrow trap

Today went very well, I started working on the hazards of the game and decided to start with spikes.
Spikes is just what it sounds like, a set of connecting spikes that damages the player when he enters them. Because the spikes has no solid hitbox I added a pushback to the player so he doesn’t just fall through them and take damage. The reason for not having a solid hitbox is that the player would be able to stand on top […]

/ Comments Off on Hazards – Spikes and arrow trap
Program: Programming

Hazards – Spikes and arrow trap

Today went very well, I started working on the hazards of the game and decided to start with spikes.
Spikes is just what it sounds like, a set of connecting spikes that damages the player when he enters them. Because the spikes has no solid hitbox I added a pushback to the player so he doesn’t just fall through them and take damage. The reason for not having a solid hitbox is that the player would be able to stand on top […]

/ Comments Off on Hazards – Spikes and arrow trap
Program: Programming

Wall sliding!

Today I was busy doing other stuff and therefore I did not have much time to program. But I managed to squeeze in some time and finish the last variable for the players basic movement, wall sliding. The player now slides down slower if he is touching a wall, in comparison to just falling faster with gravity. The sliding works by applying an small upwards force when the player is touching a wall and has a negative velocity value on Y-axis.
I […]

/ Comments Off on Wall sliding!
Program: Programming

Wall sliding!

Today I was busy doing other stuff and therefore I did not have much time to program. But I managed to squeeze in some time and finish the last variable for the players basic movement, wall sliding. The player now slides down slower if he is touching a wall, in comparison to just falling faster with gravity. The sliding works by applying an small upwards force when the player is touching a wall and has a negative velocity value on Y-axis.
I […]

/ Comments Off on Wall sliding!
Program: Programming

Wall jumping!

Today I continued on Project SlashR. I decided to work on the player and his movement. I deleted the code for the movement I did last time because it felt a little bit wonky. This time I chose to handle all movement of the player with forces. When I move the joystick left and right I apply a force in that direction and when I’m not using the joystick I apply force in the opposite direction to stop the player.
Using only forces like in real life I […]

/ Comments Off on Wall jumping!
Program: Programming

Wall jumping!

Today I continued on Project SlashR. I decided to work on the player and his movement. I deleted the code for the movement I did last time because it felt a little bit wonky. This time I chose to handle all movement of the player with forces. When I move the joystick left and right I apply a force in that direction and when I’m not using the joystick I apply force in the opposite direction to stop the player.
Using only forces like in real life I […]

/ Comments Off on Wall jumping!
Program: Programming