Code Monkey home page Code Monkey logo

flogue's Introduction

flogue

A rogue-like, originally used to teach my son, that has become a really solid game.

If you are a player, all the instructions are in the game.

If you are a developer, read on.

TO SETUP YOUR DEV ENVIRONMENT

On Mac, agree to XCode

sudo xcodebuild -license

Install Tools

You'll need NodeJS v12+, npm, git, nodemon (global install), an editor like Sublime 3.2.1+ You can use Brew for most of these.

Git Credentials

If you have reason to be very, very concerned about security, skip these steps. On Mac, type Cmd-Space and find Keychain Access Within Keychain search for "github" Set the URL to https://github.com and the username and password appropriately

Clone the repo

cd ~/code
git clone https://github.com/kdemarest/flogue

Install NodeJs tools

npm install nodemon -g

Sublime Config

Click Sublime / Preferences / Settings, and set all of the following:

{
	"auto_complete": false,
	"auto_match_enabled": false,
	"tab_completion": false,
	"word_wrap": false,
  "scroll_speed": 0.0,
}

Install Sublime Hooks and Hjson highlighting:

  1. Install "Package Control" in Sublime: https://packagecontrol.io/installation
  2. Go to Preferences / Package Control / Install Package Install:
  • BetterFindBuffer
  • HJson
  • iOpener
  • PackageResourceViewer
  1. Hit Ctrl-Shift-P (or Cmd-ShiftP) top open the so-called Command Palette
  2. Type "prv" to get to "PackageResourceViewer: Open Resource"
  3. Choose "Javascript"
  4. Select Snippets and then "Object-key-key-value.sublime-snippet"
  5. Comment out this:
  6. Restart Sublime.

Mac HID setup

This KeyRepeat rate might be too fast for you. For me, it is perfect.

defaults write -g InitialKeyRepeat -int 10
defaults write -g KeyRepeat -int 1
defaults write -g com.apple.keyboard.fnState -int 1

Then logout from your machine & login to make the changes take effect

If you use a roller mouse:

  • Uninstall any Logitech Control Center (LCC)
  • Install SteerMouse
  • In SteerMouse, set Wheel / Roll Up to "Scroll Up 5.0"
  • In SteerMouse, set Wheel / Roll Down to "Scroll Down 5.0"

Reducing Arm Strain

The use of touchpads and the mouse has been very bad for my left arm. To avoid over-use of the mouse:

In the OS

  • Get rid of Apple's assinine Alt+Tab system by installing https://manytricks.com/witch/ In System Prefs, Pick Witch. Actions=Cycle Windows Sort by Window Activity Change Keyboard to Command + Tab Uncheck List apps without windows Click Enable Witch
  • Cmd+Tab moves among all windows, remembering the last visited. Like it should.

When in the File Open dialog in Sublime

  • Cmd+UpArrow goes up a directory, them Cmd+Shift+G and type in the relative path. Sadly .. is not accepted.
  • Cmd+DownArrow goes down a directory. Sadly, hitting Enter on the directory doesn't always do what you want.
  • To see hidden files in finder, like .gitignore, type Cmd+Shift+i (i for invisible)
  • Ctrl+Tab among Sublime tabs, and Cmd+W closes Sublime tabs

In Sublime

  • Hit Cmd+Shift+P and search for "install" to install packages, below.
  • Install Package BetterFindBuffer then use n/p to jump to next/previous file, and j/k for next/previous result
  • Install Package iOpener for WAY better file opening with keyboard only. Includes tab completion.
  • Ctrl+F finds and Ctrl+H replaces
  • Cmd+G finds next, whether the find dialog is open or not
  • Cmd+Alt+E replaces.
  • F3 and Shift+F3 go to the next and previous result once you're finding

In Chrome

  • Install Chrome extension Tab Toggler to get correct Ctrl+Tab behavior Sadly, Alt+` toggles it on and off.
  • fn+upArrow and fn+downArrow goes up or down a page for all apps.
  • Cmd+Tab and Cmd+Shift+Tab go among tabs
  • Cmd+T opens tabs and Cmd+W closes tabs.
  • Cmd+~ moves amonth MacOs's windows for a specific app. You'll need this for Terminal

In Terminal

  • Type open -a Appname to run apps
  • In /Applications rename Sublime Text to sublime and Google Chrome to chrome

Running Flogue

  • To use a custom config, as a developer, set a flogueConfigId cookie to your name. This will load config.name.cfg
  • You probably want to run each of these in its own terminal, expecially if you're editing Monet.
  • In /flogue/monet run "nodemon app.js"
  • In /flogue run "http-server ./"
  • In browser visit http://localhost:8080/src/index.html

flogue's People

Contributors

dependabot[bot] avatar kdemarest avatar wdemarest avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.