draw_set_font(courier)
draw_set_halign(fa_right)
draw_set_valign(fa_bottom)
draw_set_color(c_black)
if fps<room_speed/2{draw_set_color(make_color_rgb(255,8.5*((fps/room_speed)*60),0))}
if fps>=room_speed/2{draw_set_color(make_color_rgb(255-(8.5*(((fps/room_speed)*60)-30)),255,0))}
draw_text(view_wview[0],12,"FPS:"+string(fps)+"/"+string(room_speed))
draw_set_color(c_black)
draw_text(view_wview[0],view_hview[0],"KEY:"+string_format(keyboard_key,5,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
school stuff i can actually get into | |
wow |
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
#include <Windows.h> | |
static LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); | |
int WINAPI WinMain(HINSTANCE hInstance, | |
HINSTANCE hPrevInstance, | |
LPSTR lpCmdLine, | |
int nCmdShow) | |
{ | |
static HWND hWnd; |
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
; this is ran near functions executed with WinMain | |
mov eax, core | |
push eax | |
push space ; mightve forgot to add this, but dont know what its for | |
call dword ptr ds:LoadLibraryA | |
; invoke syntax: LoadLibraryA, eax | |
; maybe since eax is already set just call LL | |
; though pushing vals/regs is still required in some way |
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
include 'macro/if.inc' | |
include 'macro/struct.inc' | |
struct DiscordRichPresence | |
state db 128 dup (?) | |
details db 128 dup (?) | |
startTimestamp dq ? | |
endTimestamp dq ? | |
largeImageKey db 32 dup (?) |
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
; ADVENTURE | |
; windows port by donnaken15 | |
format PE console 3.1 at $10000 | |
use16 | |
align 100h | |
heap 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
@echo off | |
if "%1"=="/r" goto :rem | |
:add | |
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%1.exe" /ve /d %2 /f | |
exit /b | |
:rem | |
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%2.exe" /f | |
exit /b |
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
/* https://www.googleapis.com/youtube/v3/ | |
playlistItems?playlistId=PLTWDLMN4U1FNBJll-GvoNce8PQTuXjFYh | |
&part=snippet&maxResults=50&pageToken=... | |
&key=YOUR_API_KEY */ | |
var listcur = 0, pgtok, data, videos = new Array(), vidcnt; | |
getvids = function() { | |
for (var i = 0; i < data.items.length; i++) | |
{ |
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
// don't know a fitting function name | |
function timeToFlt(val) { | |
val='2000-01-01T'+val+'Z'; | |
var date=new Date(new Date(val)-(new Date()).getTimezoneOffset() * 228000); | |
var time=(date.getHours()*3600)+(date.getMinutes()*60)+date.getSeconds()+(date.getMilliseconds()/1000); | |
return time; | |
} |