<commit_before>"""
platformer.py
Author: Finn
Credit: <list sources used, if any>
Assignment:
Write and submit a program that implements the sandbox platformer game:
https://github.com/HHS-IntroProgramming/Platformer
"""
#imports
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset
SCREEN_WIDTH=801
SCREEN_HEIGHT=801
red = Color(0xff0000, 1.0)
green = Color(0x00ff00, 1.0)
blue = Color(0x0000ff, 1.0)
black = Color(0x000000, 1.0)
white = Color(0xffffff, 1.0)
grey = Color(0x000000, 0.5)

#grid
gridline = LineStyle(1, grey)
grid=RectangleAsset(30,30,gridline,white)
width=list(range(0,41))
height=list(range(0,41))
a=2
#display grid
wall = RectangleAsset(20,20,gridline,black)
wall.create = True

   

    
    
   

for x in width:
    for y in height:
        Sprite(grid, (20*x,20*y))
    
def step():
    if wall.create:
        Sprite(wall, (event.x,event.y))
    else:
        a=2



def wKey(event):
    wall.create


myapp = App(SCREEN_WIDTH, SCREEN_HEIGHT)
# Set up event handlers for the app
myapp.listenKeyEvent('keydown', 'w', wKey)


myapp.run(step)<commit_msg>Updated from Brython Server: 10/24/2016 4:27:27 PM<commit_after>"""
platformer.py
Author: Finn
Credit: <list sources used, if any>
Assignment:
Write and submit a program that implements the sandbox platformer game:
https://github.com/HHS-IntroProgramming/Platformer
"""
#imports
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset
SCREEN_WIDTH=801
SCREEN_HEIGHT=801
red = Color(0xff0000, 1.0)
green = Color(0x00ff00, 1.0)
blue = Color(0x0000ff, 1.0)
black = Color(0x000000, 1.0)
white = Color(0xffffff, 1.0)
grey = Color(0x000000, 0.5)

#grid
gridline = LineStyle(1, grey)
grid=RectangleAsset(30,30,gridline,white)
width=list(range(0,41))
height=list(range(0,41))
a=2
#display grid
wall = RectangleAsset(20,20,gridline,black)
wall.create = True

   

    
    
   

for x in width:
    for y in height:
        Sprite(grid, (20*x,20*y))
    
def step():
    if wall.create:
        Sprite(wall, (event.x, event.y))
    else:
        a=2



def wKey(event):
    wall.create

def mouseClick(event):
    xplace=event.x
    yplace=event.y
    


myapp = App(SCREEN_WIDTH, SCREEN_HEIGHT)
# Set up event handlers for the app
myapp.listenKeyEvent('keydown', 'w', wKey)
myapp.listenMouseEvent('click', mouseClick)


myapp.run(step)
{'fraction_non_alphanumeric': 0.12650853100291304, 'fraction_numerical': 0.0628381190178943, 'mean_word_length': 4.330376940133037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '174287', 'n_tokens_mistral': 999, 'n_tokens_neox': 906, 'n_words': 220}