Skip to content

Instantly share code, notes, and snippets.

# juggling_balls.py
import random
import turtle
class Ball(turtle.Turtle):
MAX_VELOCITY = 5
GRAVITY = 0.07
BAT_VELOCITY_CHANGE = 8
# juggling_balls_game.py
import turtle
import time
import random
from juggling_balls import Ball
# Game parameters
WIDTH = 600
@BjoernSchilberg
BjoernSchilberg / README.md
Last active December 14, 2022 21:41
VINDRIKTNING
@BjoernSchilberg
BjoernSchilberg / tetris.py
Created December 8, 2022 18:49 — forked from timurbakibayev/tetris.py
Tetris game in Python
import pygame
import random
colors = [
(0, 0, 0),
(120, 37, 179),
(100, 179, 179),
(80, 34, 22),
(80, 134, 22),
(180, 34, 22),
@BjoernSchilberg
BjoernSchilberg / index.html
Last active October 17, 2022 18:51
Little tailwindcss example with Randoma11y colors
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<style>
/*
@BjoernSchilberg
BjoernSchilberg / README.md
Last active October 3, 2022 17:56
Allsky