forked from xzpeter/starwar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from commonlispbr/make-portable
Make StarWar game more portable at sbcl-wise / Linux system
- Loading branch information
Showing
13 changed files
with
150 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
system-index.txt | ||
release/ | ||
*.tar* | ||
*.fasl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
build: | ||
rm -rf release/ | ||
mkdir -p release | ||
sbcl --load build.lisp | ||
mv starwar-linux release/ | ||
cp starwar.conf release/ | ||
cp background.mp3 release/ | ||
mv lib/ release/ | ||
cp StarWar.desktop release/ | ||
sed -i 's/starwar.lisp/starwar-linux/g' release/StarWar.desktop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Name=StarWar | ||
Comment=A survival and dominance starwar game | ||
Exec=./starwar.lisp | ||
Icon=gcstar | ||
Terminal=false | ||
StartupNotify=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(ql:quickload :starwar) | ||
(in-package :starwar) | ||
(setq *compression* 1) | ||
(make-binary) |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(in-package :starwar) | ||
|
||
(defun portable-pathname (pathname &optional (system 'starwar)) | ||
"PORTABLE-PATHNAME consider two possible dirnames: local and system-wide." | ||
(if (probe-file pathname) | ||
pathname | ||
(asdf:system-relative-pathname system pathname))) |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sbcl --script | ||
|
||
|
||
;; load quicklisp setup | ||
(let ((sbclrc "~/.sbclrc")) | ||
(when (probe-file sbclrc) | ||
(load sbclrc))) | ||
|
||
(eval-when (:execute) | ||
(pushnew (truename (sb-unix:posix-getcwd/)) | ||
ql:*local-project-directories*) | ||
(ql:register-local-projects) | ||
(ql:quickload :starwar)) | ||
|
||
(defun main () | ||
(defparameter starwar:fullscreen t) | ||
(starwar:main)) | ||
|
||
(eval-when (:execute) | ||
(main)) |