stackoverflow1453

Programming&&Games&&Life

Archive for Games

Simplest game

/*

Name:
Copyright: 
Author: StackOverflow1453
Date: 9/18/2013 2:52:28 PM
Description: Simple game!!!


*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){

	char check[]="StackOverflow1453";
	//guestName is in stack because we gave how wide it is while declaration
	//so we dont have to use malloc()
	char guestName[50];
	char *p;

	puts("Who are you?");
	//guestName=malloc(100);
	fgets(guestName, 49, stdin);

	/*
	After fgets you press enter so for comparison to be healthy, 
	this '\n' must be removed.
	*/
	p=strchr(guestName, '\n');
	*p='';
	
	//Compare two strings
	if (!strcmp(guestName, check))
	{
		puts("You can pass!!");
	}
	else
	{
		puts("You can not enter");
	}

	getch();

}

CSGO Testing Flash and Smoke grenades

bind “MOUSE5” “sv_cheats 1; noclip; give weapon_hegrenade; give weapon_flashbang; give weapon_smokegrenade”

Brick Roll!

How to choose colours procedurally?

How to choose colours procedurally?

Pixel Art Tutorial

Pixel Art Tutorial

How to be an indie game developer??

How to be an indie game developer??

Advices from the creator of Spelunky on finishing Projects

Advices from the creator of Spelunky on finishing Projects