Skip to content

Instantly share code, notes, and snippets.

public class load {
static int savedA = 0;
public static void loadGame() {
try{
// Open file to read from, named GameData.sav.
FileInputStream saveFile = new FileInputStream("GameData.sav");
// Create an ObjectInputStream to get objects from save file.
ObjectInputStream save = new ObjectInputStream(saveFile);
@Jimshii
Jimshii / gist:3020101
Created June 29, 2012 19:26
Screen class
package package_full;
import java.awt.*;
import javax.swing.JFrame;
public class Screen {
private GraphicsDevice vc;
public Screen(){
@Jimshii
Jimshii / gist:3020107
Created June 29, 2012 19:27
JMain class
package package_full;
import java.awt.*;
import javax.swing.JFrame;
public class JMain extends JFrame {
public static void main(String[] args) {
DisplayMode dm = new DisplayMode(800, 600, 16, DisplayMode.REFRESH_RATE_UNKNOWN);
JMain m = new JMain();
@Jimshii
Jimshii / gist:3061997
Created July 6, 2012 18:48
Lion Labs css
body {
background-color: #CCCC99;
font-size: .85em;
font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
margin: 0;
padding: 0;
color: #696969;
}
a:link {
@Jimshii
Jimshii / gist:3078856
Created July 9, 2012 20:58
PhonesController.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcApplication1.Models;
using MvcApplication1.Services;