From dd3232a74ab4b5f0d353d717cf3f080a73528a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 26 Jun 2018 02:19:50 +0200 Subject: setup lvimrc,ctags,README,do,desktop screen size --- .gitignore | 4 ++++ .lvimrc | 7 +++++++ README.md | 13 +++++++++++++ build.gradle | 8 +++++++- .../ch/asynk/zproject/desktop/DesktopLauncher.java | 2 ++ do | 22 ++++++++++++++++++++++ 6 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .lvimrc create mode 100644 README.md create mode 100755 do diff --git a/.gitignore b/.gitignore index 6d842f2..ad948a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +## Mine +*~ +.tags + ## Java *.class diff --git a/.lvimrc b/.lvimrc new file mode 100644 index 0000000..bfb6546 --- /dev/null +++ b/.lvimrc @@ -0,0 +1,7 @@ + +" let g:ctrlp_user_command = 'find %s -type f' +" let g:ctrlp_use_caching = 0 +let g:ctrlp_custom_ignore = { + \ 'dir': '\v[\/](javadoc|assets)$', + \ 'file': '\v\.(html|class)$', + \ } diff --git a/README.md b/README.md new file mode 100644 index 0000000..6034523 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ + +# TODO + - GameScreen + - BoardCamera + - Assets + - LoadingScreen + - Fonts + - UI widgets + - SquareMap + - HexMap + - TriangleMap + - CircleMap + - gfx diff --git a/build.gradle b/build.gradle index be3ccec..2504886 100644 --- a/build.gradle +++ b/build.gradle @@ -91,6 +91,12 @@ project(":core") { } } +task ctags(type: Exec) { + executable "ctags" + args "-R", "--language-force=java", "--exclude=*~", "-f.tags", "core/src/" +} + + tasks.eclipse.doLast { delete ".project" -} \ No newline at end of file +} diff --git a/desktop/src/ch/asynk/zproject/desktop/DesktopLauncher.java b/desktop/src/ch/asynk/zproject/desktop/DesktopLauncher.java index c6a3885..15865dc 100644 --- a/desktop/src/ch/asynk/zproject/desktop/DesktopLauncher.java +++ b/desktop/src/ch/asynk/zproject/desktop/DesktopLauncher.java @@ -8,5 +8,7 @@ public class DesktopLauncher { public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); new LwjglApplication(new ZProject(), config); + config.width=800; + config.height=600; } } diff --git a/do b/do new file mode 100755 index 0000000..7dd1f98 --- /dev/null +++ b/do @@ -0,0 +1,22 @@ +#! /bin/bash + +ARGS="ctags desktop:run" + +function gradlew_do() +{ + echo "./gradlew $ARGS" && ./gradlew $ARGS || exit 1 +} + +case "$1" in +# dist + "d") + shift; + ARGS="desktop:dist $@" + gradlew_do + ;; + *) + ARGS="$ARGS $@" + gradlew_do + ;; +esac + -- cgit v1.1-2-g2b99