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
/* | |
* I want them all. | |
* Author: roy4801 | |
* 406262515 | |
*/ | |
size(600, 320); | |
background(255, 255, 255); | |
// Left Body | |
stroke(0, 0, 0); |
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
PImage cat, mouse; | |
boolean mouseLive = false; | |
boolean endGame = false; | |
int catPosX, catPosY, catSize; | |
int totalScore = 0; | |
int dir = 0; | |
final int numOfMouse = 50; | |
CharMouse []m = new CharMouse[numOfMouse]; |
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
// C++ includes used for precompiling -*- C++ -*- | |
// Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
// | |
// This file is part of the GNU ISO C++ Library. This library is free | |
// software; you can redistribute it and/or modify it under the | |
// terms of the GNU General Public License as published by the | |
// Free Software Foundation; either version 3, or (at your option) | |
// any later version. |
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
#define LED_NUM 5 | |
int pin[] = {4, 5, 6, 7, 8}; | |
#define SPEAKER 12 | |
#define ROLL A0 | |
//const int speed = 300; | |
// 700 ~ 500 light | |
// 300 |
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
#define BTN_MAX 12 | |
#define BTN_MIN 4 | |
#define BTN_NUM (BTN_MAX-BTN_MIN+1) | |
#define SPEAKER1 2 | |
#define SPEAKER2 3 | |
#define NOTE_F4 349 | |
#define NOTE_G4 392 | |
#define NOTE_A4 440 | |
#define NOTE_B4 494 |
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
Process: Cutter [3952] | |
Path: /Applications/Cutter.app/Contents/MacOS/Cutter | |
Identifier: org.radare.cutter | |
Version: 1.7.2 (1.7.2) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Cutter [3952] | |
User ID: 501 | |
Date/Time: 2018-12-03 21:26:11.382 +0800 |
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
PImage sprite; | |
int numBullet = 5; | |
int currentBullet = 0; | |
float imageW = 130, imageH = 160; | |
boolean shot; // once click per shot | |
class Bullet | |
{ | |
float x, y; |
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
int [] backgroundColor = {128, 128, 128}; | |
int [] nowFillColor = {0, 0, 0}; | |
void drawText(String s, int x, int y, int r, int g, int b) | |
{ | |
fill(r, g, b); | |
text(s, x, y); | |
} | |
void functionArea() |
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
final int WIDTH = 600; | |
final int HEIGHT = 800; | |
final int total = 20; | |
int nowImageF = 1, nowImageB = 1; | |
int btnHeight = 50; | |
void createBtn(int x, int y, String text) | |
{ |
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
def main(): | |
for i in range(1, 10): | |
for j in range(1, 10): | |
print('{} * {} = {}'.format(i, j, i*j)) | |
print('') | |
print('--------------------------------------------------------------------------', end='\n\n') | |
for i in range(1, 10): |
OlderNewer