Skip to content

Instantly share code, notes, and snippets.

View zai1208's full-sized avatar

zai1208

  • ...
  • 22:06 (UTC +11:00)
View GitHub Profile
@echo off
:detect
choice /cs /n /c HKPMq
if %errorlevel%==1 call :UP
if %errorlevel%==2 call :RIGHT
if %errorlevel%==3 call :DOWN
if %errorlevel%==4 call :LEFT
if %errorlevel%==5 goto :quit
:UP
echo UP
""" a simple python 3.x code editor in Kivy"""
from kivy.app import App
from kivy.uix.codeinput import CodeInput
# not sure if needed but must be installed
import pygments
class MyApp(App):
def build(self):
<!DOCTYPE html>
<html>
<head>
<title>Game</title>
</head>
<body>
<style>
canvas {
border : 1px solid black;
}
<!DOCTYPE html>
<html>
<head>
<title>Game</title>
</head>
<body>
<style>
canvas {
border : 1px solid black;
}

this is just a html where you can basically make things move with javascript