Permalink
Browse files

some stuff for nhc.pl

  • Loading branch information...
Blaizer committed Aug 19, 2011
1 parent 3f7763d commit da8fb0ce08fc05d2aca9c7bce987e3553528483b
Showing with 12 additions and 16 deletions.
  1. +1 −2 README
  2. +10 −13 lib/Games/Neverhood.pm
  3. +1 −1 nhc.pl
View
3 README
@@ -1,11 +1,10 @@
Games::Neverhood
Blaise Roth
-The game works without installing as long as you have the prerequisites. These are:
+The game works without installing as long as you have:
Perl 5.10.0
SDL 2.540
- File::ShareDir
Then just run:
perl nhc.pl
View
@@ -14,14 +14,11 @@ use File::Spec;
use parent 'Exporter';
our @EXPORT_OK;
-BEGIN { @EXPORT_OK = qw/$Game $App %GG $Debug $FPSLimit $Fullscreen $NoFrame $ShareDir $StartUnset $StartSet/ }
+BEGIN { @EXPORT_OK = qw/$Game %GG $Debug $FPSLimit $Fullscreen $NoFrame $ShareDir $StartUnset $StartSet/ }
# the information for the current screen
our $Game;
-# the SDLx::App
-our $App;
-
# the information more global than the current screen that needs to be stored
our %GG;
@@ -52,8 +49,16 @@ BEGIN {
# $unset->new}->set($StartSet);
# $Game->set;
+SDLx::Mixer::init(
+ frequency => 22050,
+ channels => 1,
+ chunk_size => 1024,
+ support => ['ogg'],
+ streams => 8,
+);
+
sub init {
- $App = SDLx::App->new(
+ SDLx::App->new(
title => 'The Neverhood',
width => 640,
height => 480,
@@ -94,14 +99,6 @@ sub init {
# sub{$Game->set},
],
);
-
- SDLx::Mixer::init(
- frequency => 22050,
- channels => 1,
- chunk_size => 1024,
- support => ['ogg'],
- streams => 8,
- );
}
###############################################################################
View
2 nhc.pl
@@ -2,7 +2,7 @@
# nhc.pl
# Script that calls bin/nhc and sets it up with the local share dir and lib
# no matter where nhc.pl is called from. Also runs it in a frame-less window.
-# You need not install Neverhood to run the game with this script.
+# This should work without installing as long as you have what the README says
use strict;
use warnings;

0 comments on commit da8fb0c

Please sign in to comment.