I hereby claim:
- I am yjsoon on github.
- I am yjsoon (https://keybase.io/yjsoon) on keybase.
- I have a public key whose fingerprint is 735E C8CE 9CD6 C9F6 432C B5B0 BAAB 9ADE BBEE F7F9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BallGeneratorScript : MonoBehaviour { | |
public Rigidbody ballTemplate; | |
public float ballSpeedX = 200.0f; | |
public float ballSpeedY = -100.0f; | |
public float startTime = 0.0f; |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ShooterScript : MonoBehaviour { | |
public Transform bulletTransform; | |
public Rigidbody bulletTemplate; | |
public float bulletSpeedX = -1000.0f; |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ShooterScript : MonoBehaviour { | |
public Transform bulletTransform; | |
public Rigidbody bulletTemplate; | |
public float bulletSpeedX = -1000.0f; |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ShooterScript : MonoBehaviour { | |
public Transform bulletTransform; | |
public Rigidbody bulletTemplate; | |
public float bulletSpeedX = -1000.0f; |
from microbit import * | |
boat1 = Image("00550:05050:50050:99999:09990") | |
boat2 = Image("00000:00550:05050:50050:99999") | |
boat3 = Image("00000:00000:00550:05050:50050") | |
boat4 = Image("00000:00000:00000:00550:05050") | |
boat5 = Image("00000:00000:00000:00000:00550") | |
boat6 = Image("00000:00000:00000:00000:00000") | |
all_boats = [boat1, boat2, boat3, boat4, boat5, boat6] |
from microbit import * | |
boat = Image("00550:" | |
"05050:" | |
"50050:" | |
"99999:" | |
"09990") | |
display.show(boat) |
from microbit import * | |
while True: | |
if button_a.is_pressed(): | |
display.show(Image.HAPPY) | |
elif button_b.is_pressed(): | |
break | |
else: | |
display.show(Image.SAD) |
from microbit import * | |
import random | |
answers = [ | |
"It is certain", | |
"It is decidedly so", | |
"Without a doubt", | |
"Yes, definitely", | |
"You may rely on it", | |
"As I see it, yes", |
static func saveToFile(friends: [Friend]) { | |
let plistName = "friends" | |
let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! | |
let archiveURL = documentsDirectory.appendingPathComponent(plistName).appendingPathExtension("plist") | |
let propertyListEncoder = PropertyListEncoder() | |
let encodedFriends = try? propertyListEncoder.encode(friends) | |
try? encodedFriends?.write(to: archiveURL, options: .noFileProtection) |