My Student Alex W just finished up his first app, Deal or No Deal. If you’d like to check it out, you can download the .apk to your Android phone by clicking the SourceForge download button below. Great work Alex!
NOTE: Please make sure to enable installation of apps from unknown sources on your Android device prior to downloading.
Settings > Security > Allow installation of apps from unknown sources
Quick little blog post here on how to get started with scripting in Roblox Studio. These two example scripts should be added under the ServerScriptService and the variable names should match the baseplate and part added to your blank starter project =>
Really simple two page tutorial on adding Turbolinks magic to your traditional webapp in order to achieve a SPA (singe page application) feel without having to learn a complicated framework like React, Angular or Vue. Simply import Turbolinks, then call Turbolinks.visit() to load your pages in the background with Turbolinks & AJAX =>
I’ve been experimenting at work with Apache-Cordova/Adobe-PhoneGap and am trying to find an easy way to distribute APKS generated using Adobe’s build service. Setting up development machines is probably too much work for the kids I teach, so just wanted to see if I can post an APK easily on my WordPress blog. So without futher ado… My Adobe PhoneGap Build Service Hello World APK =>
I personally was really excited about playing around with NodeJS & Express & Socket.io, but my student happens to be really good at Unity3D and has happened to find a serverless platform-as-a-service style option for multiplayer called Photon that he really likes so… looks like it’s time to learn Photon!
Working with the most advanced student at our school tomorrow and need to post a few references for our lesson, deploying an expressjs app to production. While the above 9 tutorials are pretty good, it looks like this 10th and 11th tutorials from DigitalOcean is probably the best:
My coworker John has been doing some really nice projects with smooth graphics in python using the turtle graphics library lately, so I just wanted to bookmark this series of blog posts I stumbled upon which demonstrates how to smooth out your animations in turtle =>
Simple Pong by Peter Kwak (Edited by Topher Pedersen)
On my way back to Dallas from Austin on Labor Day I happened to hear about this really awesome course on game development from Harvard University taught by David Malan (of CS50) and Colton Ogden. I immediately enrolled in the course via edX.org on my phone, and jumped right into lesson 0 after I arrived back in Dallas.
One of the things that I really liked about the course is that they kick things off with one of the original video games, Pong. When I first started teaching at theCoderSchool this was one of the first games I built myself to make sure I knew what I was doing when it game to programming simple 2D games in Python with my students. That first summer of teaching we actually used an extremely slimmed down ~100 line version of the game one of my coworkers Peter Kwak wrote for our summer camp.
Fast forward a few hours though, and I’ve quickly fallen out of love with Malan & Ogden’s course. While the Lua programming language and Love2D game engine seem really promising, their code examples haven’t been updated in two years, and include bugs that prevent them from running. While I was able to find a bug fix that someone posted in the YouTube comments for the course lecture, I realized that the 100 line program that Peter wrote is actually a lot better for teaching purposes than the one used in the Harvard CS50 Game Development Course on edX. So…
I busted out Peter Kwak’s old code, and modified it a little bit so I can run it using real Python instead of the trinket.io web based stuff we were using at camp. I imagine I will probably need to make a lot of tweaks to this code, however, I’m tossing two of my 10 year old students into the deep end of the pool tomorrow with Lesson 0: Pong =>
# Copyright (c) 2018 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/>
# Create Game Window
screen = turtle.Screen()
# screen.setup(500, 400)
screen.screensize(500, 500, "black")
# Create Ping Pong Ball
ball = turtle.Turtle()
# Create Left Ping Pong Paddle
paddle1 = turtle.Turtle()
paddle1.shapesize(4.5, 1, 0)
# Create Right Ping Pong Paddle
paddle2 = turtle.Turtle()
paddle2.shapesize(4.5, 1, 0)
# Create Scoreboard
scoreWriter = turtle.Turtle()
# Set Ball Trajectory
# Set Score
# Create Function Which Will Move Player 1's Paddle Up
# Create Function Which Will Move Player 1's Paddle Down
# Create Function Which Will Move Player 2's Paddle Up
# Create Function Which Will Move Player 2's Paddle Down
# Create Function To Update Scoreboard
myFont = ("Arial", 40, "bold")
# Set Event Listeners
# These event listeners will listen for button presses (up, down, etc.)
# Create Main Game Loop (Simulates Time, Keeps Game Running)
# Move Ball
ball.goto(ball.xcor() + run, ball.ycor() + rise)
# Detect Top or Bottom Boundary Strike
# (Reverses the Ball's Direction of Travel)
if ball.ycor() >200or ball.ycor() <-200:
# Detect Paddle Strike (Player 1)
# (Also Reverses the Ball's Direction of Travel)
ifabs(paddle1.xcor() - ball.xcor()) <15:
ifabs(paddle1.ycor() - ball.ycor()) <50:
# Detect Paddle Strike (Player 2)
# (Also Reverses the Ball's Direction of Travel)
ifabs(paddle2.xcor() - ball.xcor()) <15:
ifabs(paddle2.ycor() - ball.ycor()) <50:
# Detect When A Player Scores a Point
if ball.xcor() >250:
# Increment player1's score by 1 point when his ball
# travels past the paddle of his opponent, player 2.
score1 = score1 +1
elif ball.xcor() <-250:
# Increment player2's score by 1 point when his ball
# travels past the paddle of his opponent, player 1.