This file contains 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
# Example of how to create a player sprite object that inherits from the object | |
# turtle.Turtle in Python using the 2D Turtle Graphics Module. Code posted to | |
# my personal github for reference teaching students at theCoderSchool in | |
# Flower Mound, TX | |
# Launch Window using Turtle Graphics/Tkinter | |
import turtle | |
screen = turtle.Screen() | |
screen.setup(635, 355) |
This file contains 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
# Launch Window using Turtle Graphics/Tkinter | |
import turtle | |
screen = turtle.Screen() | |
screen.setup(635, 355) | |
# Create Turtle Object | |
myTurtle = turtle.Turtle() | |
# Add Background | |
screen.bgpic("DuckHuntBackgroundBlank.jpg") |
This file contains 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
# Duck Hunt by Chris Pedersen | |
# This is free and unencumbered software released into the public domain. | |
# For more information, please refer to <http://unlicense.org/> | |
import math | |
import random | |
# Launch Window using Turtle Graphics/Tkinter | |
import turtle | |
screen = turtle.Screen() |
This file contains 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
# ************************************************************************* | |
# GallopingUnicorn.py | |
# Copyright (c) 2018 Christopher Pedersen, All Rights Reserved | |
# ************************************************************************* | |
# This is free and unencumbered software released into the public domain. | |
# Anyone is free to copy, modify, publish, use, compile, sell, or |
This file contains 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 math | |
import random | |
# Launch Window using Turtle Graphics/Tkinter | |
import turtle | |
screen = turtle.Screen() | |
screen.setup(635, 355) | |
# Add Background | |
screen.bgpic("DuckHuntBackgroundBlank.jpg") |
This file contains 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
// NOTE: This gist is comprised of two swift files, GameScene.swift and GameViewController.swift | |
// | |
// GameScene.swift | |
// HelloSpriteKit | |
// | |
// Created by Christopher Pedersen on 7/8/18. | |
// Copyright © 2018 Christopher Pedersen. All rights reserved. | |
// |
This file contains 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
# Pong by Peter Kwak (Edited by Chris Pedersen) | |
# This is free and unencumbered software released into the public domain. | |
# For more information, please refer to <http://unlicense.org/> | |
import turtle | |
# Create Game Window | |
screen = turtle.Screen() | |
screen.setup(500, 400) | |
screen.bgcolor("black") |
This file contains 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
# Magic 8 Ball by Chris Pedersen | |
# This is free and unencumbered software released into the public domain. | |
# For more information, please refer to <http://unlicense.org/> | |
import random | |
# Greet the User | |
print("Welcome to Magic 8 Ball!") | |
# Create Game Loop |
This file contains 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
// Simple script demonstrating how to print text to the command-line, | |
// and prompt users to enter text input using readLine() in Swift | |
print("Prompt user to enter input", terminator: "") | |
var userInput: String = readLine()! | |
print(userInput) // echo userInput |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html" charset="utf-8"/> | |
<title>Babylon - Getting Started</title> | |
<!--- Link to the last version of BabylonJS ---> | |
<script src="https://cdn.babylonjs.com/babylon.js"></script> | |
<style> | |
html, body { | |
overflow: hidden; |