Skip to content

Instantly share code, notes, and snippets.

Avatar

gregoryfmartin gregoryfmartin

  • United States
View GitHub Profile
@gregoryfmartin
gregoryfmartin / SFMLNetGameCore.cs
Created Feb 21, 2020
SFML.NET - Game Core Basic Structure
View SFMLNetGameCore.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SFML.System;
using SFML.Window;
using SFML.Graphics;
namespace SFMLNetGameCore {
@gregoryfmartin
gregoryfmartin / libzip-decompress-file.cpp
Created Jul 3, 2020
Demonstration of libzip and SFML to decompress and use a file in SFML
View libzip-decompress-file.cpp
///////////////////////////////////////////////////////////////////////////////
//
// libzip-decompress-file.cpp
//
// Written by Gregory F Martin
//
//
// This source code is public domain. It references a Zip Archive which is
// not included in this Gist.
//
@gregoryfmartin
gregoryfmartin / libzip-openfile.c
Created Feb 24, 2020
libzip - Open a zip file
View libzip-openfile.c
#include <stdio.h>
#include <zip.h>
int main () {
printf ("Attempting to open a ZIP file...\n");
int zfile_err = 0;
zip_t* zfile = zip_open ("./testarchive.zip", ZIP_CHECKCONS | ZIP_RDONLY, &zfile_err);
if (NULL == zfile) {
@gregoryfmartin
gregoryfmartin / SFMLNetAudioPlayground.cs
Last active Feb 21, 2020
SFML.NET - Playing Audio (Music/BGM) using WAV
View SFMLNetAudioPlayground.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SFML.System;
using SFML.Window;
using SFML.Graphics;
using SFML.Audio;
View SFMLNetFontPlayground.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SFML.Graphics;
using SFML.Window;
namespace SFMLNetFontPlayground {
static class SFMLNetFontPlayground {
@gregoryfmartin
gregoryfmartin / SFMLNetSpriteMoverPlayground.cs
Last active Feb 20, 2020
SFML.NET - Move an object in response to keyboard input
View SFMLNetSpriteMoverPlayground.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SFML.Graphics;
using SFML.Window;
using SFML.System;
namespace SFMLNetSpriteMover {
You can’t perform that action at this time.