Skip to content

Instantly share code, notes, and snippets.

@krisyr686
krisyr686 / visibleobject
Created June 13, 2013 06:33
visibleobject.cpp(26): error C2664: 'sf::Shape::setTexture' : cannot convert parameter 1 from 'sf::Texture' to 'const sf::Texture *'
#pragma once
class VisibleObject
{
public:
VisibleObject();
virtual ~VisibleObject();
virtual void Load(std::string filename);
virtual void Draw(sf::RenderWindow & window);
virtual void Update(float elapsedTime);
#include "mainchar.h"
static bool lwalk = false;
static bool rwalk = false;
static bool rstand = false;
static bool lstand = false;
static bool rjump = false;
static bool ljump = false;
static bool rduck = false;
static bool lduck = false;
@krisyr686
krisyr686 / gamepractice
Created May 24, 2013 05:40
This is a very rough work in progress as I try to learn how to make a game.
#include <SFML/Graphics.hpp>
#include <iostream>
#include <SFML/Audio.hpp>
int main()
{
std::cout << "What is up?!\n";
////CREATION
@krisyr686
krisyr686 / gist:3becc0ff34630606cc75
Last active July 29, 2017 07:56
Need help figure out this error: "Unhandled exception at 0x778415de in FirstGame.exe: 0xC0000005: Access violation reading location 0x003c4000."
//Libraries
#include <SFML/Graphics.hpp>
#include <iostream>
//Global variables, functions, classess
//main
int main()
{
//CREATION