Skip to content

Instantly share code, notes, and snippets.

@robc
robc / Exception.txt
Created May 26, 2018 01:55
Quarries on macOS exception
Sat May 26 11:54:47 AEST 2018 INFO:Slick Build #274
Sat May 26 11:54:47 AEST 2018 INFO:LWJGL Version: 2.9.1
Sat May 26 11:54:47 AEST 2018 INFO:OriginalDisplayMode: 1920 x 1200 x 32 @0Hz
Sat May 26 11:54:47 AEST 2018 INFO:TargetDisplayMode: 800 x 600 x 0 @0Hz
Sat May 26 11:54:49 AEST 2018 INFO:Starting display 800x600
Sat May 26 11:54:49 AEST 2018 INFO:Use Java PNG Loader = true
Loading: net.java.games.input.OSXEnvironmentPlugin
Sat May 26 11:54:49 AEST 2018 INFO:Found 0 controllers
[S_API FAIL] SteamAPI_Init() failed; ipcserver GetSteamPath failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dylib.
@robc
robc / InputController.cs
Created February 19, 2018 11:00
Touch Input Code from PocketDogfights - this was integrated into a wider input framework, which handles taking a number of calls from this and translating it into player input.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class InputController : MonoBehaviour
{
public System.Action<bool> OnSetDirectionIndicatorVisibility;
public System.Action<float> OnSetDirectionIndicatorHeading;
public System.Action OnMenuMoveUp;
Petunia Pickle's Pumpkin Preview
================================
Info
----
* Designed & Coded by Ant Stiller, Published by Pond
* Preview available for download from the Pond Homepage: http://pondsoft.uk/pumpkin.html
Story
-----
@robc
robc / MAME.command
Created November 11, 2016 11:47
macOS launch script for sdlmame builds!
#!/bin/sh
cd "$(dirname "$0")"
./mame64 -window -keepaspect
# Change "~/Emulation/C64" to the base path you want to start from!
find ~/Emulation/C64 -name "._*" -o -name ".DS_Store" | sed 's/.*/"&"/' | xargs rm
@robc
robc / Intensity Manual.txt
Created December 5, 2014 10:08
Intensity C64 Instructions
Intensity
Playguide
Commodore 64/128
By Graftgold Ltd
Intensity © Graftgold Ltd
Copyright subsists in all Telecomsoft and Telecomsoft affiliated software, documentation and artwork. All rights reserved. No part of this software may be copied or transmitted in any form or by any means. This software is sold on the condition that it shall not be hired out without the express permission of the publisher.
@robc
robc / C64 Palette.txt
Last active August 29, 2015 14:09
C64 RGB Palette
C64 Palette Colours
===================
Black: 0, 0, 0
White: 255, 255, 255
Red: 104, 55, 43
Cyan: 112, 164, 178
Purple: 111, 61, 134
Green: 88, 141, 67
Blue: 53, 40, 121
# OS X Launch Script for Quarries of Scred.
# This allows the game to be started from Finder,
# as .sh scripts can't be launched in this way.
#!/bin/sh
cd "$(dirname "$0")"
java -classpath "lib/*:.:quarry.jar" Quarry
@robc
robc / Keyboard.mm
Created May 23, 2013 10:09
Fix for the UIKeyboardBounds deprecated warnings which are present in the default Unity-iOS Project files.
// Original code as present in the source
CGPoint center = [[notification.userInfo objectForKey:UIKeyboardCenterEndUserInfoKey] CGPointValue];
CGRect rect = [[notification.userInfo objectForKey:UIKeyboardBoundsUserInfoKey] CGRectValue];
// Correct code to replace it
CGRect rect = [[notification.userInfo objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
CGPoint center = CGPointMake(CGRectGetMidX(rect), CGRectGetMidY(rect));
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.delegate = self;
if ([self deviceHasCamera] && indexPath.row == 0)
imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
else
imagePickerController.sourceType = (UIImagePickerControllerSourceTypePhotoLibrary || UIImagePickerControllerSourceTypeSavedPhotosAlbum);