clean up unused code and resources

This commit is contained in:
ohsqueezy 2023-01-25 16:42:37 -05:00
parent dcef09e613
commit 34b9c30e0a
24 changed files with 4 additions and 100 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ pyvenv.cfg
lib/python*
stat/
www/scrapeboard_new.gif
*.backup

View File

@ -27,11 +27,11 @@ History
Scrapeboard started in 2017 as a side project of the STORE 2 exhibition at [Babycastles](https://babycastles.com), which Frank, Blake, and Clement, the creators of Scrapeboard, worked on, along with curator Mushbuh and a team of volunteers. The team received a donation of a signed skatedeck from Tony Hawk to be added to the exhibition. After the exhibition, in preparation for [MAGFest](https://super.magfest.org) 2018, Frank and Blake turned the skatedeck into a game controller with the idea of making something similar to Dance Dance Revolution, using a skatedeck instead of the player's feet for input.
The original prototype was created using the signed skatedeck, cardboard, aluminum foil, copper tape, and a Makey Makey. The skatedeck was turned into a conductive device by applying copper tape to the bottom of the deck and placing it on a platform made of cardboard and layered aluminum foil. In the center of the platform was a cross section of aluminum foil, separated by bare cardboard and painter's tape from four other sections of aluminum foil outside the cross section. The four outside sections and cross section were connected to the Makey Makey with alligator clips. This served as a proof of concept for the game and even was able to be used for a few events.
The original prototype was created using the signed skatedeck, cardboard, aluminum foil, copper tape, and a [Makey Makey](https://makeymakey.com). The skatedeck was turned into a conductive device by applying copper tape to the bottom of the deck and placing it on a platform made of cardboard and layered aluminum foil. In the center of the platform was a cross section of aluminum foil, separated by bare cardboard and painter's tape from four other sections of aluminum foil outside the cross section. The four outside sections and cross section were connected to the Makey Makey with alligator clips. This served as a proof of concept for the game and even was able to be used for a few events.
The next version of Scrapeboard used four aluminum street signs, a rug, an aluminum sheet, and an Arduino. Four rectangles were cut into the rug to frame the aluminum signs, which were taped to the bottom of the rug with carpet tape. The aluminum sheet was drilled into the bottom of the signed skatedeck. The Arduino circuit was designed using pull-up resistors and a program loop which turned each input low and tested for a connection with the other inputs, so the circuit wouldn't require a ground connection anymore. This version was used for many events but required a lot of repair and maintenance before and after each event.
A newer model was made in preparation for GDC 2022, using wood, aluminum street signs, steel anchor rings, and the same Arudino circuit. The aluminum street signs were drilled into four pieces of wood which were bracketed together on the underside. The steel anchor rings were fastened to the underside of the skatedeck using machine screws. By the end of 2022, this version had been refined to the point where it could last through multiple events without needing repair, a significant milestone for the project because it opened up the possibility of the game being able to run without constant supervision.
A newer model was made in preparation for [GDC](https://gdconf.com) 2022, using wood, aluminum street signs, steel anchor rings, and the same Arduino circuit. The aluminum street signs were drilled into four pieces of wood which were bracketed together on the underside. The steel anchor rings were fastened to the underside of the skatedeck using machine screws. By the end of 2022, this version had been refined to the point where it could last through multiple events without needing repair, a significant milestone for the project because it opened up the possibility of the game being able to run without constant supervision.
Although there are still improvements being worked on, the 2022 model is what this manual is based on and what the instructions will create. Since that model has proven to be durable, the steps to reproduce it can be recommended as a simple method for Scrapeboard players to construct a system of their own. Further improvements are covered by optional steps and more will likely be added in the future.

View File

@ -1,47 +0,0 @@
[setup]
license = Public Domain
title = Scrapeboard
url = http://shampoo.ooo/games/esb
version = 0.2.3
init-script = OPEN-GAME
additional-packages = lib
data-exclude = local/, *.pyc, .git*, README, build/, dist/, *.egg-info, *.py, MANIFEST*, PKG-INFO, *.pyc, *.swp, *~, changelog, scrapeboard, OPEN-GAME, lib
[display]
caption = Scrapeboard
show-framerate = False
dimensions = 640, 480
fullscreen = False
attract-gif-alpha = 0.95
[mouse]
visible = False
[keys]
quit = K_ESCAPE
up = K_u
[audio]
sfx-volume = 0.8
panel-enabled = True
volume = 1.0
[input]
buffer = 0
arduino-port = /dev/ttyACM1
serial = True
[time]
timer-max-time = 10000
timer-start-time = 7000
timer-addition = 1000
sword-delay = 300
attract-gif-length = 10000
attract-board-length = 3600
[bgm]
title = resource/bgm/title.ogg, 1.00
level_0 = /home/frank/storage/audio/bgm/bat-tree-habitat-key/level-0.wav, 1.00
level_1 = /home/frank/storage/audio/bgm/esp-hadouken/Cube-Levers.ogg, 1.00
level_2 = /home/frank/storage/audio/bgm/esp-hadouken/Bog.ogg, 1.00
end = /home/frank/storage/audio/bgm/odoboe/odoboe-2.wav, 1.00

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,38 +0,0 @@
import pyaudio
import wave
CHUNK = 1024
FORMAT = pyaudio.paInt32
CHANNELS = 2
RATE = 44100
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "output.wav"
p = pyaudio.PyAudio()
stream = p.open(format=FORMAT,
channels=CHANNELS,
rate=RATE,
input=True,
frames_per_buffer=CHUNK)
print("* recording")
frames = []
for i in range(0, int(RATE / CHUNK * RECORD_SECONDS)):
data = stream.read(CHUNK)
frames.append(data)
print("* done recording")
stream.stop_stream()
stream.close()
p.terminate()
wf = wave.open(WAVE_OUTPUT_FILENAME, 'wb')
wf.setnchannels(CHANNELS)
wf.setsampwidth(p.get_sample_size(FORMAT))
wf.setframerate(RATE)
wf.writeframes(b''.join(frames))
wf.close()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1 @@
42070 0

View File

@ -1,13 +0,0 @@
from sys import platform
if __name__ == "__main__":
if platform == "darwin":
from lib.pgfw.pgfw.SetupOSX import SetupOSX
SetupOSX("OPEN-GAME",
["NS.py", "resource", "lib", "config"]).setup()
elif platform == "win32":
from lib.pgfw.pgfw.SetupWin import SetupWin
SetupWin().setup()
else:
from lib.pgfw.pgfw.Setup import Setup
Setup().setup()