+1

Things are moving forward. I’m steadily learning and adapting to the constant streams of information thrown at me. As earlier stated, I felt a bit left behind in the wake of the veterans, but the instructors (or teachers I suppose) has been more than helpful, even if the pace is still a bit hectic.

My little assigned sidekick, a supposed veteran (A guy named Viktor), has been a great tutor, but he’s actually a bit of a rookie as well. This actually helps me more than it brings me down, as we struggle together to solve the logical problems presented to us (With great success I might add!). It’s teamwork short and simple.

A short snippet (and a fun reminder to my future self that will laugh at the shitty work) of code:

#include <iostream>
#include <ctime>
#include <cmath>

int roll(){

return rand() % 3 + 1;
}

int main(){
srand( (unsigned int)time(nullptr) );
int z = 0;
int map[50];
for(int i = 0; i<=49; i++){
z++;
map[i] = roll();
if(map[i] == 1){
//Wall
std::cout << “#”;

if (z == 10){
std::cout << ” ” << std::endl;
z = 0;
}
}
else if(map[i] == 2){
//Tree
std::cout << “&”;

if (z == 10){
std::cout << ” ” << std::endl;
z = 0;
}
}
else if(map[i] == 3){
//Road
std::cout << “_”;

if (z == 10){
std::cout << ” ” << std::endl;
z = 0;
}
}
}

 }

gamespacetext

About perkulatorn

I'm a 21 year old Gamedesign student at Uppsala University Campus Gotland. Creator of: Terminal Flight - Top Down Rogue Game Melvind - Tower Defense (http://doodlemeat.se/ggj13) Totemic - King of the Hill Competitive Game (WIP) Tamarrion - Hardcore RPG (tamarriongame.com , tamarriongame.wordpress.com)

Leave a comment