Skip to content

An utterly simple, single-player clone of Battleship, written in Scala 3 and using Indigo framework

License

Notifications You must be signed in to change notification settings

bilki/navalcombat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development tips

Hot reload development flow

  1. Open sbt and run ~buildGame
  2. Spin up an http server with live reload. I use livereload. Launch this from the game source code folder:
livereload -p 9000 -t target/indigoBuild/scripts target/indigoBuild
  1. Open a browser, go to http://localhost:9000, open console/inspector, disable network cache
  2. Change some code, save files, check browser

Random notes

I use peek. Recording as .mp4 requires converting it later to .gif using ffmpeg:

ffmpeg -i naval_combat.mp4 -vf "fps=24,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop -1 naval_combat.gif

Assets attributions

About

An utterly simple, single-player clone of Battleship, written in Scala 3 and using Indigo framework

Topics

Resources

License

Stars

Watchers

Forks

Languages