- KivyTiledMap.py - inherits from the TiledMap class and loads the TiledMap images
- TileGrid.py - creates a Kivy grid and puts the tiles from a KivyTiledMap in it for rendering
- Character.py - example of a character widget that can move via user input on a TileGrid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// everything you do in java is inside a class | |
class MyClass { | |
// this is a java "method" or "function" | |
public static void main(String[ ] args) { | |
// anything to the right of two slashes // is a java "comment" | |
// it's for writing notes or messages to others reading your code | |
// a string stores text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'irb/completion' | |
IRB.conf[:PROMPT_MODE] = :SIMPLE | |
IRB.conf[:AUTO_INDENT_MODE] = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
// Editor | |
// Controls how the editor should render whitespace characters, posibilties are 'none', 'boundary', and 'all'. The 'boundary' option does not render single spaces between words. | |
"editor.renderWhitespace": "boundary", | |
// Files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .gitignore_global | |
# git config --global core.excludesfile '~/.gitignore_global' | |
# MacOS Files | |
.DS_Store | |
# IntelliJ | |
.idea | |
*.iml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .gitconfig | |
[credential] | |
helper = osxkeychain | |
[user] | |
name = Christopher Horenstein | |
email = chris.horenstein@gmail.com | |
[core] | |
excludesfile = /Users/chris/.gitignore_global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from kivy.app import App | |
from kivy.clock import Clock | |
from kivy.graphics import Rectangle | |
from kivy.graphics.texture import Texture | |
from kivy.lang import Builder | |
from kivy.properties import ListProperty, NumericProperty | |
from kivy.uix.widget import Widget |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import simplejson as json | |
first_cap_re = re.compile('(.)([A-Z][a-z]+)') | |
all_cap_re = re.compile('([a-z0-9])([A-Z])') | |
def convert(name): | |
# eliminate spaces | |
name = name.replace(' ', '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": ".@", | |
"selector": "source.coffee, source.litcoffee, source.coffee.md" | |
} | |
], | |
"close_windows_when_empty": true, |