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
# aypsg2vgm.py: converter of AY-3-8910 .PSG files to .VGM format | |
# | |
# Copyright (c) 2023 SergioFLS | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so. |
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
#ifndef CHUNK_IDS_H | |
#define CHUNK_IDS_H | |
#define ID_FORM 0x4d524f46 | |
#define ID_GEN8 0x384e4547 | |
#define ID_OPTN 0x4e54504f | |
// also under MIT-0, see gmiff.c | |
#endif |
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
# gb2tgb by SergioFLS | |
# made for https://scratch.mit.edu/discuss/topic/60460/?page=1 | |
# NOTE: this was only tested on Python 3.6.5. 3.x versions might work, but probably 2.x won't. | |
''' | |
links that helped me: | |
https://stackoverflow.com/questions/3964245/convert-file-to-hex-string-python | |
https://stackoverflow.com/questions/606191/convert-bytes-to-a-string | |
https://stackoverflow.com/questions/23766383/python-error-typeerror-function-takes-exactly-1-argument-5-given | |
https://stackoverflow.com/questions/9210525/how-do-i-convert-hex-to-decimal-in-python | |
http://www.pythonforbeginners.com/files/reading-and-writing-files-in-python |
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
nice. | |
i converted the "mm2wood.mid" file then converted to ".ptcop" using Pxtonebox. i opened the converted file then i replaced the instruments. | |
Links/Downloads: | |
mm2wood.mid: http://www.midishrine.com/index.php?id=50 | |
Pxtonebox and Pxtone collage: https://www.cavestory.org/download/music-tools.php |
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
-- tile 3 is an tree, tile 256 is the character | |
-- NOTE: Update() is executed trough function TIC() | |
function Update() | |
if btnp(0,30,3) then | |
if mget(x+14,y+7) == 2 then | |
sfx(1) | |
else | |
y=y-1 | |
sfx(0) | |
end |
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
-- title: game title | |
-- author: SergioFLS | |
-- desc: messing around with TIC-80 | |
-- script: lua | |
function debug(enabled) | |
if enabled then | |
print("X: " .. x .. "\nY: " .. y .. "\nTitle ID: " .. mget(x+14,y+8) .. "\nDown Pressed: ",0,0) | |
end | |
end |