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 google.protobuf.json_format | |
import test_pb2 | |
# test.proto | |
# $ protoc --python_out=. test.proto | |
""" | |
syntax = "proto3"; | |
message Test { | |
bool b_value = 1; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
//=========================================================================== | |
//=========================================================================== | |
// ArtRage Script File. | |
//=========================================================================== | |
//=========================================================================== | |
//=========================================================================== | |
// Version Block - Script version and ArtRage version: | |
//=========================================================================== |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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(): | |
# index関数は、リストに保存されている物と一致している | |
# ものを検索します。 | |
# 複数存在している場合は、先に見つかったインデックスを戻します。 | |
# 見つからない場合は ValueError という例外が発生します。 | |
# ----------------------------------------------------------------------- | |
# 数値や文字列が格納されたリストの例) |
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 pyxel | |
import math | |
# レーザーの長さ | |
MAX_LASER_HISTORY = 8 | |
# レーザー色(お好みで) | |
LASER_COLOR = [2, 2, 2, 2, 8, 9, 10, 7] | |
# レーザーの長さとレーザー色の数が一致しているかのチェック | |
# (数が誤っているとエラーを出して教えてくれます) | |
assert MAX_LASER_HISTORY == len(LASER_COLOR) |
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 pyxel | |
# レーザーの長さ | |
MAX_LASER_HISTORY = 8 | |
# レーザー色(お好みで) | |
LASER_COLOR = [7, 6, 5, 1, 1, 1, 1, 1] | |
# レーザーの長さとレーザー色の数が一致しているかのチェック | |
# (数が誤っているとエラーを出して教えてくれます) | |
assert MAX_LASER_HISTORY == len(LASER_COLOR) |
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> | |
<style> | |
body { | |
margin: 0; | |
} | |
</style> | |
</head> |
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 pyxel | |
SCREEN_W = 256 | |
SCREEN_H = 240 | |
GAME_FPS = 60 | |
MIN_RADIUS = 10 |