many many bug fixes.

This commit is contained in:
Bryce Covert
2017-01-12 23:30:32 -08:00
parent d08bb503ac
commit 9369a2ea9c
16 changed files with 74 additions and 83 deletions

View File

@@ -2,10 +2,11 @@
"platform": "mac", "platform": "mac",
"jdk": "/Users/brycecovert/dev/jvms/jre1.8.0_112.jre/Contents/jre.zip", "jdk": "/Users/brycecovert/dev/jvms/jre1.8.0_112.jre/Contents/jre.zip",
"executable": "Tick's Tales", "executable": "Tick's Tales",
"vmargs": ["ui_scale=1.5"], "vmargs": ["-Dui_scale=1.5"],
"appjar": "target/advent-standalone.jar", "classpath": ["target/advent-standalone.jar"],
"mainclass": "advent/core/desktop_launcher", "mainclass": "advent.core.desktop_launcher",
"resources": ["resources/icon", "steam_appid.txt"], "resources": ["resources/icon", "steam_appid.txt"],
"minimizejre": "oraclejre8", "minimizejre": "oraclejre8",
"outdir": "target/osx-mobilesim/Tick's Tales.app" "output": "target/osx-mobilesim/Tick's Tales.app",
"bundleidentifier": "com.tickstales.upallknight"
} }

View File

@@ -3,9 +3,11 @@
"jdk": "/Users/brycecovert/dev/jvms/jre1.8.0_112.jre/Contents/jre.zip", "jdk": "/Users/brycecovert/dev/jvms/jre1.8.0_112.jre/Contents/jre.zip",
"executable": "Tick's Tales", "executable": "Tick's Tales",
"vmargs": [], "vmargs": [],
"appjar": "target/advent-standalone.jar", "classpath": ["target/advent-standalone.jar"],
"mainclass": "advent/core/desktop_launcher", "mainclass": "advent.core.desktop_launcher",
"resources": ["resources/icon", "steam_appid.txt"], "resources": ["resources/icon", "steam_appid.txt"],
"minimizejre": "oraclejre8", "minimizejre": "oraclejre8",
"outdir": "target/osx/Tick's Tales.app" "output": "target/osx/Tick's Tales.app",
"bundle": "com.tickstales.upallknight",
"verbose": true
} }

View File

@@ -1,11 +1,11 @@
{ {
"platform": "windows", "platform": "windows64",
"jdk": "/Users/brycecovert/dev/jvms/java-1.8.0-openjdk-1.8.0.111-3.b15.ojdkbuild.windows.x86_64.zip", "jdk": "/Users/brycecovert/Downloads/openjdk-1.7.0-u80-unofficial-windows-amd64-image.zip",
"executable": "TicksTales", "executable": "TicksTales",
"appjar": "target/advent-standalone.jar", "classpath": ["target/advent-standalone.jar"],
"vmargs": ["-Dui_scale=1.5"], "vmargs": ["-Dui_scale=1.5"],
"mainclass": "advent/core/desktop_launcher", "mainclass": "advent.core.desktop_launcher",
"resources": ["steam_appid.txt"], "resources": ["steam_appid.txt"],
"minimizejre": "soft", "minimizejre": "soft",
"outdir": "target/windows-mobilesim/" "output": "target/windows-mobilesim/"
} }

View File

@@ -1,10 +1,10 @@
{ {
"platform": "windows", "platform": "windows64",
"jdk": "/Users/brycecovert/dev/jvms/java-1.8.0-openjdk-1.8.0.111-3.b15.ojdkbuild.windows.x86_64.zip", "jdk": "/Users/brycecovert/Downloads/openjdk-1.7.0-u80-unofficial-windows-amd64-image.zip",
"executable": "TicksTales", "executable": "TicksTales",
"appjar": "target/advent-standalone.jar", "mainclass": "advent.core.desktop_launcher",
"mainclass": "advent/core/desktop_launcher",
"resources": ["steam_appid.txt"], "resources": ["steam_appid.txt"],
"classpath": ["target/advent-standalone.jar"],
"minimizejre": "soft", "minimizejre": "soft",
"outdir": "target/windows/" "output": "target/windows/"
} }

View File

@@ -10,11 +10,11 @@ mv osx-mobilesim "Tick's Tales - OS X - Mobile Sim"
mv linux "Tick's Tales - Linux" mv linux "Tick's Tales - Linux"
mv windows "Tick's Tales - Windows" mv windows "Tick's Tales - Windows"
mv windows-mobilesim "Tick's Tales - Windows - Mobile Sim" mv windows-mobilesim "Tick's Tales - Windows - Mobile Sim"
zip -r linux-1.2.`cat ../last-release`.zip "Tick's Tales - Linux" zip -r linux-2.0.`cat ../last-release`.zip "Tick's Tales - Linux"
zip -r osx-1.2.`cat ../last-release`.zip "Tick's Tales - OS X" zip -r osx-2.0.`cat ../last-release`.zip "Tick's Tales - OS X"
zip -r osx-mobilesim-1.2.`cat ../last-release`.zip "Tick's Tales - OS X - Mobile Sim" zip -r osx-mobilesim-2.0.`cat ../last-release`.zip "Tick's Tales - OS X - Mobile Sim"
zip -r windows-1.2.`cat ../last-release`.zip "Tick's Tales - Windows" zip -r windows-2.0.`cat ../last-release`.zip "Tick's Tales - Windows"
zip -r windows-mobilesim-1.2.`cat ../last-release`.zip "Tick's Tales - Windows - Mobile Sim" zip -r windows-mobilesim-2.0.`cat ../last-release`.zip "Tick's Tales - Windows - Mobile Sim"
popd popd
rm ~/Dropbox/TicksTalesBuilds/*.zip rm ~/Dropbox/TicksTalesBuilds/*.zip
cp target/*.zip ~/Dropbox/TicksTalesBuilds/ cp target/*.zip ~/Dropbox/TicksTalesBuilds/

View File

@@ -1,41 +1,6 @@
ART MOBILE
+ Update all collisions
PROGRAMMING godfather is "visible" with
+ try to have dialogue for every wrong interaction mint position hard to click
+ preload all sounds
+ behind house left direction not great
+ magic sound busted when fading music in
+ brian goes down after wrong item
IOS
+ all mp3s
+ pngcrush breaks colors
+ renable pickup sound once it's been replaced
+ update-override slow on IOS
AUDIO
+ scratch
+ magic hands
+ gandarf explosion
+ crying
+ cat
+ strength potion
+ cafe sound
+ milking
+ antique sigh
+ bloodclot grunt
+ bloodclot explode
+ crowbar
+ get sick
+ sigh
+ jump
+ chop wood
+ step backwards creep
+ shoot slinger's
+ new music for night
+ EDGES
+ Gandarf magic handskkk
+ arm wrestle

View File

@@ -1 +1 @@
2 4

Binary file not shown.

View File

@@ -1,4 +1,4 @@
(def version (str "1.2." (clojure.string/trim-newline (slurp "last-release")))) (def version (str "2.0." (clojure.string/trim-newline (slurp "last-release"))))
(defproject advent version (defproject advent version
:description "FIXME: write description" :description "FIXME: write description"

View File

@@ -7,4 +7,5 @@ java -jar packr.jar build-osx-mobilesim.json
# java -jar packr.jar build-linux-32.json # java -jar packr.jar build-linux-32.json
# java -jar packr.jar build-linux-64.json # java -jar packr.jar build-linux-64.json
cp icons.icns target/osx/Tick\'s\ Tales.app/Contents/Resources/ cp icons.icns target/osx/Tick\'s\ Tales.app/Contents/Resources/
cp icons.icns target/osx-mobilesim/Tick\'s\ Tales.app/Contents/Resources/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -36,9 +36,9 @@
:down-time (:total-time screen)))) :down-time (:total-time screen))))
(defn mouse-outside-inventory? [[x y]] (defn mouse-outside-inventory? [[x y]]
(or (< x 80) (or (< x 140)
(> x 1200) (> x 1140)
(< y 80) (< y 320)
(> y 880))) (> y 880)))
(defn mouse-drag [screen {:keys [selected-item] :as entities} options] (defn mouse-drag [screen {:keys [selected-item] :as entities} options]
@@ -51,8 +51,8 @@
selected-item selected-item
(-> entities (-> entities
(assoc-in [:items selected-item :x] (- x 32)) (assoc-in [:items selected-item :x] x)
(assoc-in [:items selected-item :y] (- y 32)) (assoc-in [:items selected-item :y] y)
(assoc :dragged? true) (assoc :dragged? true)
(assoc :hovered-item (:item hovered-entity))) (assoc :hovered-item (:item hovered-entity)))
:else :else
@@ -172,20 +172,23 @@
base-y (* 180 4) base-y (* 180 4)
item-width (* utils/ui-scale 4 18) item-width (* utils/ui-scale 4 18)
padding (/ item-width 4) padding (/ item-width 4)
item-height (* utils/ui-scale 4 16)
padding-height (/ item-height 4)
x (+ base-x (* column (+ padding item-width))) x (+ base-x (* column (+ padding item-width)))
y (- base-y (* row (+ padding item-width))) y (- base-y (* row (+ padding item-width)))
offset-x (+ x (/ item-width 2)) offset-x (+ x (/ item-width 2))
offset-y (+ y (/ item-width 2)) offset-y (+ y (/ item-width 2))
padded-size (/ (+ item-width padding padding) 2) padded-width (/ (+ item-width padding padding) 2)
padded-height (/ (+ item-height padding-height padding-height) 2)
#_#_padding (* 4 padding)]] #_#_padding (* 4 padding)]]
[item (assoc (texture (aget (:all-items entities) 0 (.indexOf utils/+all-cursors+ (:cursor item)))) [item (assoc (texture (aget (:all-items entities) 0 (.indexOf utils/+all-cursors+ (:cursor item))))
:x (+ x (/ padding 2)) :y (+ y (/ padding 2)) :x (+ x (/ padding 2)) :y y
:scale-x (* utils/ui-scale 4) :scale-x (* utils/ui-scale 4)
:scale-y (* utils/ui-scale 4) :scale-y (* utils/ui-scale 4)
:origin-x 9 :origin-x 9
:origin-y 8 :origin-y 8
:item item :item item
:box (zone/box (- x padded-size) (- y padded-size) (+ x padded-size) (+ y (/ item-width 2))))]))) :box (zone/box (- x padded-width) (- y padded-height) (+ x padded-width) (+ y padded-height)))])))
(assoc-in [:tweens :fade-in] (tween/tween :fade-in screen [:opacity] 0.0 1.0 0.2 :ease tween/ease-out-cubic))))) (assoc-in [:tweens :fade-in] (tween/tween :fade-in screen [:opacity] 0.0 1.0 0.2 :ease tween/ease-out-cubic)))))
:on-mouse-moved mouse-move :on-mouse-moved mouse-move

View File

@@ -25,6 +25,8 @@
(assoc (animation->texture screen coin-flip) (assoc (animation->texture screen coin-flip)
:x 212 :y 114 :baseline 151 :x 212 :y 114 :baseline 151
:opacity 0.0 :opacity 0.0
:label "Coin"
:cursor :hand
:origin-x 5 :origin-x 5
:origin-y 5 :origin-y 5
:night-profile :none :night-profile :none
@@ -42,6 +44,8 @@
(let [stand (utils/make-anim "castle-gate/goon-1.png" [13 33] 0.21 [0 0 0 0 0 0 0 0 0 1])] (let [stand (utils/make-anim "castle-gate/goon-1.png" [13 33] 0.21 [0 0 0 0 0 0 0 0 0 1])]
(assoc (animation->texture screen stand) (assoc (animation->texture screen stand)
:x 244 :y 102 :baseline 138 :x 244 :y 102 :baseline 138
:label "Goon"
:cursor :talk
:scale-x 1.4 :scale-x 1.4
:scale-y 1.4 :scale-y 1.4
:night-profile :sprite :night-profile :sprite
@@ -61,6 +65,8 @@
:scale-y 1.4 :scale-y 1.4
:origin-x 6 :origin-x 6
:origin-y 0 :origin-y 0
:label "Bubba"
:cursor :talk
:anim stand :anim stand
:talk talk :talk talk
:flip flip :flip flip
@@ -127,6 +133,7 @@
(actions/walk-to entities :ego [245 90] :skip-type :end)) (actions/walk-to entities :ego [245 90] :skip-type :end))
(defn flip-coin [screen entities] (defn flip-coin [screen entities]
(println "here")
(if (and (= 0 (rand-int 2)) (if (and (= 0 (rand-int 2))
(not (get-in entities [:state :has-dropped-coin?])) (not (get-in entities [:state :has-dropped-coin?]))
(not (get-in entities [:state :bubba-gone?])) (not (get-in entities [:state :bubba-gone?]))
@@ -182,6 +189,8 @@
(defn make-note [] (defn make-note []
{:box [97 102 111 132] {:box [97 102 111 132]
:label "Note"
:cursor :look
:script (actions/get-script entities :script (actions/get-script entities
(look-at-note entities)) (look-at-note entities))
:scripts {:charcoal (actions/get-script entities :scripts {:charcoal (actions/get-script entities
@@ -207,6 +216,8 @@
:cursor :left} :cursor :left}
:window {:box [192 157 215 215] :window {:box [192 157 215 215]
:label "Window"
:cursor :look
:script (actions/get-script entities :script (actions/get-script entities
(actions/talk entities :ego "That's a big window!")) (actions/talk entities :ego "That's a big window!"))
:scripts {:walkie-talkies (actions/get-script entities :scripts {:walkie-talkies (actions/get-script entities
@@ -260,8 +271,7 @@
(if (and (not (actions/has-obtained? entities :money)) (if (and (not (actions/has-obtained? entities :money))
(get-in entities [:state :has-dropped-coin?])) (get-in entities [:state :has-dropped-coin?]))
(do (do (update-in entities [:room :entities :coin-flip] assoc :x 185 :y 44 :opacity 1.0))
(update-in entities [:room :entities :coin-flip] assoc :x 185 :y 44 :opacity 1.0))
entities) entities)
(if (actions/has-obtained? entities :money) (if (actions/has-obtained? entities :money)
(update-in entities [:room :entities] dissoc :coin-flip) (update-in entities [:room :entities] dissoc :coin-flip)

View File

@@ -304,6 +304,8 @@
flex (utils/make-anim "castle-gate/frankie.png" [24 35] 0.2 [0 10 11 12 12 12 12 11 10])] flex (utils/make-anim "castle-gate/frankie.png" [24 35] 0.2 [0 10 11 12 12 12 12 11 10])]
(assoc (animation->texture screen stand) (assoc (animation->texture screen stand)
:x 235 :y 90 :baseline 150 :x 235 :y 90 :baseline 150
:label "Frankie Rockfist"
:cursor :talk
:origin-x 12 :origin-x 12
:origin-y 0 :origin-y 0
:anim stand :anim stand
@@ -457,7 +459,9 @@
:bloodclot-head "Give it here!") :bloodclot-head "Give it here!")
(actions/transition-background entities :space [200 45] :between (fn [s e] (actions/transition-background entities :space [200 45] :between (fn [s e]
(-> e (-> e
(assoc-in [:room :entities :ego :stand-override] :crawl-stand) (assoc-in [:room :entities :ego :stand-override] :crawl-stand)
(assoc-in [:room :entities :ego :previous-frame-index] -1)
(update-in [:room :entities :ego] #(actions/start-animation s % :crawl-stand))) (update-in [:room :entities :ego] #(actions/start-animation s % :crawl-stand)))
)) ))
(actions/do-dialogue entities (actions/do-dialogue entities

View File

@@ -32,6 +32,8 @@
(assoc-in [:room :current-layers 6 :opacity] opacity) (assoc-in [:room :current-layers 6 :opacity] opacity)
(assoc-in [:room :current-layers 7 :opacity] opacity) (assoc-in [:room :current-layers 7 :opacity] opacity)
(assoc-in [:room :current-layers 8 :opacity] opacity) (assoc-in [:room :current-layers 8 :opacity] opacity)
(assoc-in [:room :entities :fairy-godfather :label] (if (> opacity 0.0) "Fairy Godfather" nil))
(assoc-in [:room :entities :fairy-godfather :cursor] (if (> opacity 0.0) :talk nil))
(assoc-in [:room :entities :sword :opacity] tool-opacity) (assoc-in [:room :entities :sword :opacity] tool-opacity)
(assoc-in [:room :entities :case :opacity] tool-opacity) (assoc-in [:room :entities :case :opacity] tool-opacity)
(assoc-in [:room :entities :broom :opacity] tool-opacity) (assoc-in [:room :entities :broom :opacity] tool-opacity)
@@ -584,7 +586,7 @@
(utils/fast-forward-particle (get-in entities [:room :entities :outside-particles])) (utils/fast-forward-particle (get-in entities [:room :entities :outside-particles]))
(as-> entities entities (as-> entities entities
(if (get-in entities [:state :seen-intro?]) (if (get-in entities [:state :seen-intro?])
(set-opacity entities 1.0 1.0) (set-opacity entities 1.0 1.0)
(set-opacity entities 0.0 0.0)) (set-opacity entities 0.0 0.0))
(if (actions/has-item? entities :broom) (if (actions/has-item? entities :broom)

View File

@@ -1100,6 +1100,7 @@ void main ()
(.setUniformf shader "hue_amount" (float (or hue-amount 1.0)))) (.setUniformf shader "hue_amount" (float (or hue-amount 1.0))))
(.setColor batch (color (:r e 1.0) (:g e 1.0) (:b e 1.0) (:opacity e 1.0))) (.setColor batch (color (:r e 1.0) (:g e 1.0) (:b e 1.0) (:opacity e 1.0)))
(entities/draw! (assoc e :x (+ (/ ^double (:x e) (.zoom camera)) (entities/draw! (assoc e :x (+ (/ ^double (:x e) (.zoom camera))
@@ -1111,14 +1112,15 @@ void main ()
(.setColor batch (color 1 1 1 1)) (.setColor batch (color 1 1 1 1))
(.set (.combined camera) original-combined)))) (.set (.combined camera) original-combined))))
(def nighttime-times #{:night :sunrise}) (def nighttime-times #{:night :dawn})
(defn get-rendered [entities {:keys [time ^double y ^double offset-y night-profile] :or {night-profile :default} :as e}] (defn get-rendered [entities {:keys [time ^double y ^double offset-y night-profile] :or {night-profile :default} :as e}]
(as-> e e (as-> e e
(if (and (not= time (-> entities :state :time)) (if (or (get-in entities [:tweens :dawn-r])
(nighttime-times (-> entities :state :time))) (and (not= time (-> entities :state :time))
(-> e (nighttime-times (-> entities :state :time))))
(merge (-> entities :time-profiles night-profile)) (-> e
(assoc :time (-> entities :state :time))) (merge (-> entities :time-profiles night-profile))
(assoc :time (-> entities :state :time)))
e) e)
#_(if offset-y #_(if offset-y
(assoc e :y (+ y offset-y)) (assoc e :y (+ y offset-y))
@@ -1131,7 +1133,8 @@ void main ()
(defn grab-layers [entities] (defn grab-layers [entities]
(update-in entities [:room] (update-in entities [:room]
(fn [{:keys [layers current-layers] :as room}] (fn [{:keys [layers current-layers] :as room}]
(cond current-layers (cond (and current-layers
(not (get-in entities [:tweens :dawn-r])))
room room
(map? layers) (map? layers)
@@ -1173,7 +1176,7 @@ void main ()
(defscreen scene (defscreen scene
:on-timer :on-timer
(fn [screen entities options] (fn [screen entities options]
(when-let [timer-fn (get-in entities [:room :timers (:id screen) 2])] (when-let [timer-fn (get-in entities [:room :timers (:id options) 2])]
(timer-fn screen entities))) (timer-fn screen entities)))
:on-show :on-show
@@ -1407,7 +1410,7 @@ void main ()
entities)) entities))
entities (grab-layers entities) entities (grab-layers entities)
layers (get-in entities [:room :current-layers]) layers (get-in entities [:room :current-layers])
all-entities (concat layers (vals (get-in entities [:room :entities])))] all-entities (concat layers (vals (get-in entities [:room :entities])) [(:white-fade entities)])]
(screen! fade-screen :update-fade {:opacity (get-in entities [:fade :opacity])}) (screen! fade-screen :update-fade {:opacity (get-in entities [:fade :opacity])})
(doseq [m (vals (get-in entities [:musics]))] (doseq [m (vals (get-in entities [:musics]))]
(when m (when m
@@ -1471,7 +1474,7 @@ void main ()
rest) rest)
(assoc-in entities [:room :entities] (persistent! room)))) (assoc-in entities [:room :entities] (persistent! room))))
layers (get-in entities [:room :current-layers]) layers (get-in entities [:room :current-layers])
all-entities (concat layers (vals (get-in entities [:room :entities])))] all-entities (concat layers (vals (get-in entities [:room :entities])) [(:white-fade entities)])]
(screen! tooltip-screen :on-hover-start {:hover-text (get-in entities [:label :text]) (screen! tooltip-screen :on-hover-start {:hover-text (get-in entities [:label :text])
:scene-viewport (:viewport screen) :scene-viewport (:viewport screen)