09-27-2009
Playing games from another directory?
If "photopia.dat" is a game. To play it, you would normally type "frotz photopia.dat" (assuming you are in the directory where photopia.dat resides).
But what if you are in your home directory, photopia.dat is in the newly created "games" directory, and you want to play it without switching directories? What's the command?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i have installed SDL int /opt
and i installed a game with pkgadd in /usr/local
and when i try to start the game i says:
ld.so.1: ./gamename: fatal: libSDL-1.1.so.0: open failed: No such file or directory
what should i do (1 Reply)
Discussion started by: CreamHarry
1 Replies
2. UNIX for Dummies Questions & Answers
for some reson lokie games do not let me play the games on my linux box i go and install it but will not let me play them acts like it wants to run the game but will not open what do i do
i have return to wolfinstine
and unreal 2003
and seriurs sam
and quake 1,2,3
and starwars jedi 2
and... (1 Reply)
Discussion started by: amicrawler2000
1 Replies
3. What is on Your Mind?
So what kind of games we all play? If any?
I like RTS, C&C fan here all the way :p (8 Replies)
Discussion started by: woofie
8 Replies
4. UNIX for Dummies Questions & Answers
Does anyone know of any unix-based games? (1 Reply)
Discussion started by: danceofillusion
1 Replies
5. UNIX for Dummies Questions & Answers
I was wondering if anyone had a script file for a game or a puzzle in a script file? Or something fun, like a quiz (2 Replies)
Discussion started by: JamieMurry
2 Replies
6. UNIX for Dummies Questions & Answers
If "photopia.dat" is a game. To play it, you would normally type "frotz photopia.dat" (assuming you are in the directory where photopia.dat resides).
But what if I'm in my home directory, photopia.dat is in the "games" directory, and I want to play it without switching directories? What command... (2 Replies)
Discussion started by: greeky
2 Replies
7. Ubuntu
I have Ubunut installed on my desktop
AMD 6 Core 3.2 (will be getting the bulldozer AMD 8 Core when it releases)
16 GB of DDR3 1333 RAM
SSD
some HDD's
Nvidia 560 ti 1GB
My question is, how can I or can I even get a Win 7 VM to play games as well in a main install. Give it 10 GBs of RAM... (0 Replies)
Discussion started by: ochieman2000
0 Replies
8. Post Here to Contact Site Administrators and Moderators
Hi!
I'm new to the site, and today I clicked on "Banking", curious as to what that was about. Aside from being able to "buy" things with these points, it appears there are some games available, on which you can wager your points. While I could access the "high scores", I could not find the... (14 Replies)
Discussion started by: sudon't
14 Replies
LEARN ABOUT PHP
load_datafile
load_datafile(3alleg4) Allegro manual load_datafile(3alleg4)
NAME
load_datafile - Loads a datafile into memory. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
DATAFILE *load_datafile(const char *filename);
DESCRIPTION
Loads a datafile into memory in one go. If the datafile has been encrypted, you must first call packfile_password() to set the appropriate
key. If the datafile contains truecolor graphics, you must set the video mode or call set_color_conversion() before loading it. Example:
/* Load the resources for our game. */
DATAFILE *dat = load_datafile("game.dat");
if (!dat)
abort_on_error("Couldn't load sound resources!");
/* Use resources. */
...
/* Destroy them when we don't need them any more. */
unload_datafile(dat);
RETURN VALUE
Returns a pointer to the DATAFILE, or NULL on error. Remember to free this DATAFILE later to avoid memory leaks.
SEE ALSO
load_datafile_callback(3alleg4), unload_datafile(3alleg4), load_datafile_object(3alleg4), set_color_conversion(3alleg4),
fixup_datafile(3alleg4), packfile_password(3alleg4), find_datafile_object(3alleg4), register_datafile_object(3alleg4), excustom(3alleg4),
exdata(3alleg4), exexedat(3alleg4), exgui(3alleg4), exsprite(3alleg4), exunicod(3alleg4)
Allegro version 4.4.2 load_datafile(3alleg4)