Skip to content

Instantly share code, notes, and snippets.

View jessefreeman's full-sized avatar

Jesse Freeman jessefreeman

View GitHub Profile
@jessefreeman
jessefreeman / TextureData.cs
Created April 6, 2016 15:15
A class that emulates the API of Unity's Texture2D but uses int as references to color index instead of the color class.
using System;
namespace PixelVision.Engine.Chips.Graphics.Sprites
{
public interface ITextureData
{
int width { get; }
int height { get; }
int GetPixel(int x, int y);
void SetPixel(int x, int y, int value);
//
// Copyright (c) Jesse Freeman. All rights reserved.
//
// Licensed under the Microsoft Public License (MS-PL) License.
// See LICENSE file in the project root for full license information.
//
// Contributors
// --------------------------------------------------------
// This is the official list of Pixel Vision 8 contributors:
//
//
// Copyright (c) Jesse Freeman. All rights reserved.
//
// Licensed under the Microsoft Public License (MS-PL) License.
// See LICENSE file in the project root for full license information.
//
// Contributors
// --------------------------------------------------------
// This is the official list of Pixel Vision 8 contributors:
//
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using PixelVisionRunner;
using PixelVisionSDK;
using PixelVisionSDK.Utils;
namespace MonoGameRunner.Data
{
public class DisplayTarget : IDisplayTarget
@jessefreeman
jessefreeman / keys.lua
Last active August 28, 2018 21:16
Key map to use when capturing input for remapping keyboard input.
{name = Back, keyCode = 8, char = "!"},
{name = Tab, keyCode = 9, char = "@"},
{name = Enter, keyCode = 13, char = "#"},
{name = Escape, keyCode = 27, char = "$"},
{name = Space, keyCode = 32, char = "%"},
{name = Left, keyCode = 37, char = "^"},
{name = Up, keyCode = 38, char = "&"},
{name = Right, keyCode = 39, char = "*"},
{name = Down, keyCode = 40, char = "("},
{name = Delete, keyCode = 46, char = ")"},
local startValue = 0
local handValue = {}
local timeDelay = 1
local timeCount = 0
local cursorPos = 0
local gameOver = true
local BLACK, WHITE, GREY = 32, 51, 27
function PadNumber(value, length)
return string.format("%0"..length.."d", value)
This file has been truncated, but you can view the full file.
Mono: Config attempting to parse: './mono/config'.
Mono: Config attempting to parse: '/home/parallels/.mono/config'.
Mono: process_set_name: using [Pixel Vision 8 Runner.exe] as prog name
Mono: mono_w32handle_new: create Process handle 0x1f82d50
Mono: Assembly Loader probing location: '/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll'.
Mono: Image addref mscorlib[0x1f948e0] -> /home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll[0x1f93350]: 2
Mono: Prepared to set up assembly 'mscorlib' (/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll)
Mono: Assembly Loader loaded assembly from location: '/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll'.
Mono: Config attempting to parse: '/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll.config'.
Mono: Config attempting to parse: './mono/assemblies/mscorlib/mscorlib.config'.
Microsoft (R) Build Engine version 15.6.0.0 (xplat-master/ca830585 Sun Mar 25 19:24:09 EDT 2018) for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
/Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/MSBuild.dll /p:Configuration=Release /t:Build /v:diag ./Desktop.csproj
Build started 7/23/2018 11:13:00 AM.
Environment at start of build:
LANG = en_US.UTF-8
TERM = xterm-256color
TERM_PROGRAM = Apple_Terminal
SHLVL = 1
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A931DB73-1032-4087-8371-FB3744ADFA0D}</ProjectGuid>
<OutputType>WinExe</OutputType>
Microsoft (R) Build Engine version 15.7.177.53362 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\bin\msbuild.exe /p:Configuration=Release /p:PackageTargetPlatforms=Itchio /t:BuildGamePackages /v:diag C:\Users\jessefreeman\Documents\PublishTest\PublishTest.csproj
Build started 7/16/2018 8:54:41 AM.
Environment at start of build:
ALLUSERSPROFILE = C:\ProgramData
APPDATA = C:\Users\jessefreeman\AppData\Roaming
CommandPromptType = Native
CommonProgramFiles = C:\Program Files (x86)\Common Files