Skip to content

Instantly share code, notes, and snippets.

gregoryfmartin gregoryfmartin

Block or report user

Report or block gregoryfmartin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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;
@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 / 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 {
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 {
You can’t perform that action at this time.