slash/readme.md
2024-11-09 00:56:05 -05:00

1.9 KiB

# local fish function to get around the repeating auth check
auto_ssh

# track lfs
git lfs track "*.mp3"
git lfs track "*.glb"
git lfs track "*.png"

ffmpeg -i input.ogg output.wav

# update icon from svg
magick -background none -density 256x256 Raw/icon.svg -define icon:auto-resize=256,128,64,48,32,16 Platforms/Net/App.ico
./android_icons.sh Raw/icon.svg

adb devices
adb tcpip 5555
adb shell ip -f inet addr show wlan0
adb connect 192.168.1.219

# publish build
# increment version in Platforms/Android/AndroidManifest.xml
dotnet publish -c Release Projects/Android/snake.Android.csproj

# adb install Projects/Android/bin/Release/net7.0-android/com.dofdev.snake-Signed.apk

# upload quest
source .env
./ovr-platform-util upload-quest-build -a $APP_ID -s $APP_SECRET --apk $APK_PATH -c alpha -n "message"

# debug
adb logcat | grep com.dofdev.snake


# install a specific android platform
sdkmanager "platforms;android-33" "build-tools;33.0.0"
todo
  track steps out of box
  if > x then snake get's pulled/slips out of the box

  check to see how far out of box (with some warning)
  if (too far out || more segments out of box than in)than slip out of box from gravity
  if going up slipping out due to gravity doesn't make sense so
    just prevent the snake from going too far up instead (soft pause)?

  this means gravity could affect things even when in box
  and breaking through the box and coiling up on yourself allows you to fill the space strategically
  the food could even be affected by gravity so everything kind of starts of 2d
  and 3d feels like an awesome treat/clever trick the user can play rather than an overwhelming paradigm shift