Browse Source

Got Kitty building

Note that this required modifying Ogre for
https://github.com/OGRECave/ogre-next/pull/186, which hasn't been
merged yet.

Unfortunately, I need to build relative to GameLib, because there are
way too many relative paths that depend on Cakelisp's current working
directory. I don't know yet how I would like to solve this.
master
Macoy Madson 3 years ago
parent
commit
12265130d6
  1. 9
      Build.sh
  2. 2
      Dependencies/gamelib
  3. 4
      ReadMe.org
  4. BIN
      assets/Board.xcf
  5. 11
      src/Main.cake

9
Build.sh

@ -0,0 +1,9 @@
#!/bin/sh
# Note that we everything build relative to GameLib, because GameLib isn't relocatable yet
cd Dependencies/gamelib && ./Build_Debug.sh #|| exit $? TODO Uncomment after restart
CAKELISP=./Dependencies/cakelisp/bin/cakelisp
# After relocation, this will be able to be simply .
KITTY_DIR=../..
$CAKELISP --execute $KITTY_DIR/src/Main.cake || exit $?

2
Dependencies/gamelib

@ -1 +1 @@
Subproject commit af35b040cf8b830575f2240f900ac782de08b048
Subproject commit 9151effffed592173077afb0f3c9540d290aa444

4
ReadMe.org

@ -1,6 +1,6 @@
#+title: Kitty Gridlock
This is a project for V. She loves [[https://en.wikipedia.org/wiki/Rush_Hour_(board_game)][Rush Hour]] puzzles. For her birthday (April 2021), I have a goal to make a Rush Hour player for her Android phone, using my [[https://macoy.me/code/macoy/cakelisp/][Cakelisp]] and [[https://macoy.me/code/macoy/gamelib][Gamelib]] tools.
This is a project for V. She loves [[https://en.wikipedia.org/wiki/Rush_Hour_(board_game)][Rush Hour]] puzzles. For her birthday (April 2021), I have a goal to make a Rush Hour player for her Android phone, using my [[https://macoy.me/code/macoy/cakelisp/][Cakelisp]] and [[https://macoy.me/code/macoy/gamelib][GameLib]] tools.
I am using [[https://www.michaelfogleman.com/rush/][Michael Fogleman's Rush Hour database]] ([[https://web.archive.org/web/20201101044241/https://www.michaelfogleman.com/rush/][archive.org]]) in order to provide her tons of puzzles.
@ -38,4 +38,4 @@ V has a OnePlus 6T Android phone with the following specifications (from [[https
| RAM | 8GB |
| Android Version | 10 |
The two main specs I need to care about are Android Version and Display Resolution. Otherwise, AMOLED hints that pure black is going to look nice.
The two main specs I need to care about are Android Version and Display Resolution. Additionally, AMOLED hints that pure black is going to look nice.

BIN
assets/Board.xcf

Binary file not shown.

11
src/Main.cake

@ -1,5 +1,16 @@
(comptime-define-symbol 'Unix)
;; Until GameLib is relocatable, we will build from it
;; (add-cakelisp-search-directory "Dependencies/gamelib/src")
;; (set-cakelisp-option cakelisp-src-dir "Dependencies/gamelib/Dependencies/cakelisp/src")
;; (add-cakelisp-search-directory "Dependencies/gamelib/Dependencies/cakelisp/runtime")
(add-cakelisp-search-directory "src")
(c-import "<stdio.h>")
(import "SDL.cake")
(defun main (&return int)
(printf "Hello, Kitty Gridlock!\n")
(test--sdl-main)
(return 0))

Loading…
Cancel
Save