This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: #CCCC99; | |
font-size: .85em; | |
font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif; | |
margin: 0; | |
padding: 0; | |
color: #696969; | |
} | |
a:link { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package package_full; | |
import java.awt.*; | |
import javax.swing.JFrame; | |
public class Screen { | |
private GraphicsDevice vc; | |
public Screen(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class save { | |
static int savedQ = 0; | |
public static void gameSave() { | |
try{ // Catch errors in I/O if necessary. | |
// Open a file to write to, named GameData.sav. | |
FileOutputStream saveFile = new FileOutputStream("GameData.sav"); | |
// Create an ObjectOutputStream to put objects into save file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JMenuItem Load = new JMenuItem("Load Game"); | |
Load.setToolTipText("Load a previously saved game"); | |
Load.addActionListener(new ActionListener() { | |
public void actionPerformed(ActionEvent event) { | |
load.loadGame(); | |
if (Character.secondBar == null) { | |
statusbar.setText("No game found"); | |
} | |
else { | |
statusbar.setText("Loading game..."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void CharacterCreate(int ccRace, int ccGender, int ccRole, int qq1, int qq2, int qq3) { | |
if (ccRace == 0 && ccGender == 0 && ccRole == 0) { | |
health = 150; | |
secondBar = "Stamina"; | |
stamina = 100; | |
strength = 30; | |
intelligence = 15; | |
dexterity = 15; | |
charisma = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package skeleton; | |
public class ShopNPC { | |
String response1 = "gtfo my face nigga"; | |
// Do like a dozen of these response. | |
//String responsetitle = "what he actually says"; | |
//Name the response whatever you want so that they fit the actual response. | |
//Make sure to include things like "Would you like to view my items?" or "You don't have enough money for that!" | |
//Easter eggs gogogogogo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Example extends JFrame { | |
private static final long serialVersionUID = 1L; | |
protected Component main; | |
public Example() { | |
initUI(); | |
} |
NewerOlder