tweaks!
This commit is contained in:
20
desktop/gametodos.txt
Normal file
20
desktop/gametodos.txt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
+ Grandma cry?
|
||||||
|
+ More ways to burn paper
|
||||||
|
+ drool icon
|
||||||
|
++ antique position
|
||||||
|
+ origins are still messed up when scaling
|
||||||
|
+ loop sounds update every frame instead of each play
|
||||||
|
+ door open and close animations
|
||||||
|
+ shitty plates
|
||||||
|
+ better gross-out animation
|
||||||
|
+ sudden night befoe switching
|
||||||
|
+ too small area
|
||||||
|
+ peddler stuff should be gone at night
|
||||||
|
+ owl barf effect
|
||||||
|
+ sack lunch should spoil
|
||||||
|
+ swinging axe at second doesn't seem right
|
||||||
|
+ bloodclot isn't hidden at start
|
||||||
|
+ fight with blergh at end isn't great
|
||||||
|
+ ending
|
||||||
|
+ wrong timing for potions
|
||||||
|
+ secret lever
|
||||||
165
desktop/pom.xml
Normal file
165
desktop/pom.xml
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>advent</groupId>
|
||||||
|
<artifactId>advent</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
<name>advent</name>
|
||||||
|
<description>FIXME: write description</description>
|
||||||
|
<build>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
<testSourceDirectory>test</testSourceDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>resources</directory>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
<testResources>
|
||||||
|
<testResource>
|
||||||
|
<directory>dev-resources</directory>
|
||||||
|
</testResource>
|
||||||
|
<testResource>
|
||||||
|
<directory>resources</directory>
|
||||||
|
</testResource>
|
||||||
|
</testResources>
|
||||||
|
<directory>target</directory>
|
||||||
|
<outputDirectory>target/classes</outputDirectory>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>1.7</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>add-source</id>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>add-source</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<sources>
|
||||||
|
<source>src-common</source>
|
||||||
|
</sources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>central</id>
|
||||||
|
<url>https://repo1.maven.org/maven2/</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>clojars</id>
|
||||||
|
<url>https://clojars.org/repo/</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx-backend-lwjgl</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx-box2d</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx-tools</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx-box2d-platform</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
<classifier>natives-desktop</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx-bullet</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx-bullet-platform</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
<classifier>natives-desktop</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.badlogicgames.gdx</groupId>
|
||||||
|
<artifactId>gdx-platform</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
<classifier>natives-desktop</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.clojure</groupId>
|
||||||
|
<artifactId>clojure</artifactId>
|
||||||
|
<version>1.6.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.clojure</groupId>
|
||||||
|
<artifactId>tools.nrepl</artifactId>
|
||||||
|
<version>0.2.6</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.clojure</groupId>
|
||||||
|
<artifactId>clojure</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>play-clj</groupId>
|
||||||
|
<artifactId>play-clj</artifactId>
|
||||||
|
<version>0.4.5-BRYCE</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.clojure</groupId>
|
||||||
|
<artifactId>data.priority-map</artifactId>
|
||||||
|
<version>0.0.5</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.clojure</groupId>
|
||||||
|
<artifactId>core.async</artifactId>
|
||||||
|
<version>0.1.338.0-5c5012-alpha</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>clojure-complete</groupId>
|
||||||
|
<artifactId>clojure-complete</artifactId>
|
||||||
|
<version>0.2.3</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.clojure</groupId>
|
||||||
|
<artifactId>clojure</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
|
|
||||||
|
<!-- This file was autogenerated by Leiningen.
|
||||||
|
Please do not edit it directly; instead edit project.clj and regenerate it.
|
||||||
|
It should not be considered canonical data. For more information see
|
||||||
|
https://github.com/technomancy/leiningen -->
|
||||||
BIN
desktop/resources/testscreen/subject.png
Normal file
BIN
desktop/resources/testscreen/subject.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/resources/testscreen/test.png
Normal file
BIN
desktop/resources/testscreen/test.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
49
desktop/src-common/advent/screens/test.clj
Normal file
49
desktop/src-common/advent/screens/test.clj
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
(ns advent.screens.test
|
||||||
|
(:require [play-clj.core :refer :all]
|
||||||
|
[play-clj.math :refer :all]
|
||||||
|
[play-clj.ui :refer :all]
|
||||||
|
[play-clj.utils :refer :all]
|
||||||
|
[play-clj.g2d :refer :all]
|
||||||
|
[advent.utils :as utils]
|
||||||
|
[advent.tween :as tween]
|
||||||
|
[advent.screens.scene :as scene]
|
||||||
|
[advent.screens.dialogue :as dialogue]
|
||||||
|
[advent.screens.title :as title]
|
||||||
|
[advent.screens.inventory :as inventory]
|
||||||
|
[advent.screens.safe :as safe]
|
||||||
|
[advent.screens.fade :as fade]
|
||||||
|
)
|
||||||
|
(:import [com.badlogic.gdx.graphics Pixmap Pixmap$Filter Texture Texture$TextureFilter]
|
||||||
|
[com.badlogic.gdx.graphics.g2d TextureRegion]
|
||||||
|
[com.badlogic.gdx.utils.viewport FitViewport]
|
||||||
|
[com.badlogic.gdx.scenes.scene2d.ui Slider$SliderStyle]
|
||||||
|
[com.badlogic.gdx.scenes.scene2d.utils Align]
|
||||||
|
[com.badlogic.gdx Application Audio Files Game Gdx Graphics Input
|
||||||
|
InputMultiplexer InputProcessor Net Preferences Screen]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(defscreen test-screen
|
||||||
|
:on-show
|
||||||
|
(fn [screen entities]
|
||||||
|
|
||||||
|
(utils/setup-viewport screen 320 240)
|
||||||
|
|
||||||
|
{:overlay (assoc (texture "testscreen/test.png" ) :x 0 :y 0 :origin-x 0 :origin-y 0)
|
||||||
|
:subject (assoc (texture "testscreen/subject.png" ) :x 160 :y 120 :origin-x 7 :origin-y 7 :scale-x 5 :scale-y 5 )})
|
||||||
|
|
||||||
|
:on-render
|
||||||
|
(fn [screen [entities]]
|
||||||
|
|
||||||
|
(clear!)
|
||||||
|
(render! screen [(:overlay entities) (:subject entities)])
|
||||||
|
entities)
|
||||||
|
|
||||||
|
:show-screen (fn [entities]
|
||||||
|
entities)
|
||||||
|
:on-resize (fn [{:keys [viewport width height]} [entities]]
|
||||||
|
(.update viewport width height)
|
||||||
|
nil))
|
||||||
Reference in New Issue
Block a user