Skip to content

Instantly share code, notes, and snippets.

_mid = 512
_rate = 0
_freq = 0.01
_circle_count = 30
_circle_width = _mid/_circle_count
_circle_offset = 0
//
// main.c
// NoClip
//
// Created by Ben Stafford on 31/03/2018.
// Copyright © 2018 Ben Stafford. All rights reserved.
//
#include <stdlib.h>
#include <stdio.h>

Keybase proof

I hereby claim:

  • I am absoiute on github.
  • I am absolllute (https://keybase.io/absolllute) on keybase.
  • I have a public key ASAOwH_OLYvqMfpyvDPdIVrquw5ddqktK3h2wnvrXHvwrgo

To claim this, I am signing this object:

@absoIute
absoIute / blocks.h
Last active December 11, 2022 18:26
std::map<int, const char*> blocks = std::map<int, const char*>
{
{44, "checkpoint_01_001.png"}, // not setup in ObjectToolbox::init(), only initialised when placing a checkpoint
{1, "square_01_001"},
{2, "square_02_001"},
{3, "square_03_001"},
{4, "square_04_001"},
{5, "square_05_001"},
{6, "square_06_001"},
{7, "square_07_001"},
{0x000000ff, 0x000000ff, 0x000001ff, 0x000002ff, 0x000003ff, 0x000004ff, 0x000005ff, 0x000006ff, 0x000007ff, 0x000008ff, 0x000009ff, 0x00000aff, 0x00000bff, 0x00000cff, 0x00000dff, 0x00000eff, 0x00000fff, 0x000010ff, 0x000011ff, 0x000012ff, 0x000013ff, 0x000014ff, 0x000015ff, 0x000016ff, 0x000017ff, 0x000018ff, 0x000019ff, 0x00001aff, 0x00001bff, 0x00001cff, 0x00001dff, 0x00001eff, 0x00001fff, 0x000020ff, 0x000021ff, 0x000022ff, 0x000023ff, 0x000024ff, 0x000025ff, 0x000026ff, 0x000027ff, 0x000028ff, 0x000029ff, 0x00002aff, 0x00002bff, 0x00002cff, 0x00002dff, 0x00002eff, 0x00002fff, 0x000030ff, 0x000031ff, 0x000032ff, 0x000033ff, 0x000034ff, 0x000035ff, 0x000036ff, 0x000037ff, 0x000038ff, 0x000039ff, 0x00003aff, 0x00003bff, 0x00003cff, 0x00003dff, 0x00003eff, 0x00003fff, 0x000040ff, 0x000041ff, 0x000042ff, 0x000043ff, 0x000044ff, 0x000045ff, 0x000046ff, 0x000047ff, 0x000048ff, 0x000049ff, 0x00004aff, 0x00004bff, 0x00004cff, 0x00004dff, 0x00004eff, 0x00004fff, 0x000050ff, 0x000051ff, 0x000052ff, 0x000053ff, 0x0
{ 0x6464ff,0x6464ff,0x6465ff,0x6465ff,0x6466ff,0x6467ff,0x6467ff,0x6468ff,0x6468ff,0x6469ff,0x646aff,0x646aff,0x646bff,0x646bff,0x646cff,0x646dff,0x646dff,0x646eff,0x646eff,0x646fff,0x6470ff,0x6470ff,0x6471ff,0x6471ff,0x6472ff,0x6473ff,0x6473ff,0x6474ff,0x6475ff,0x6475ff,0x6476ff,0x6476ff,0x6477ff,0x6478ff,0x6478ff,0x6479ff,0x6479ff,0x647aff,0x647bff,0x647bff,0x647cff,0x647cff,0x647dff,0x647eff,0x647eff,0x647fff,0x647fff,0x6480ff,0x6481ff,0x6481ff,0x6482ff,0x6483ff,0x6483ff,0x6484ff,0x6484ff,0x6485ff,0x6486ff,0x6486ff,0x6487ff,0x6487ff,0x6488ff,0x6489ff,0x6489ff,0x648aff,0x648aff,0x648bff,0x648cff,0x648cff,0x648dff,0x648dff,0x648eff,0x648fff,0x648fff,0x6490ff,0x6490ff,0x6491ff,0x6492ff,0x6492ff,0x6493ff,0x6494ff,0x6494ff,0x6495ff,0x6495ff,0x6496ff,0x6497ff,0x6497ff,0x6498ff,0x6498ff,0x6499ff,0x649aff,0x649aff,0x649bff,0x649bff,0x649cff,0x649dff,0x649dff,0x649eff,0x649eff,0x649fff,0x64a0ff,0x64a0ff,0x64a1ff,0x64a2ff,0x64a2ff,0x64a3ff,0x64a3ff,0x64a4ff,0x64a5ff,0x64a5ff,0x64a6ff,0x64a6ff,0x64a7ff,0x64a8ff,0x64a
- FILE
[0x00]: header
[0x08]: meta_size
[0x0C]: meta
[0x0C + meta_size]: reserved
[0x0C + meta_size + 0x08]: event_size
[0x0C + meta_size + 0x0C]: event_count
[0x0C + meta_size + 0x10]: events
[0x0C + meta_size + 0x10 + event_size * event_count]: footer
@absoIute
absoIute / str_gd.cpp
Last active June 20, 2023 16:04
gd::string
#include "str_gd.h"
#include <Windows.h>
namespace gd
{
AllocType alloc = reinterpret_cast<AllocType>(GetProcAddress(LoadLibrary(L"MSVCR120.DLL"), "??2@YAPAXI@Z"));
DeallocType dealloc = reinterpret_cast<DeallocType>(GetProcAddress(LoadLibrary(L"MSVCR120.DLL"), "??3@YAXPAX@Z"));
string::string()
@absoIute
absoIute / version_detect.cpp
Created September 30, 2023 20:46
Simple Version Detection
#include "version_detect.h"
#include <Windows.h>
std::map<uint32_t, std::string> VersionDetect::s_buildMap =
{
{ 1419173053, "1.900" },
{ 1419880840, "1.910" },
{ 1421745341, "1.920" },
{ 1440638199, "2.000" },
@absoIute
absoIute / gist:140714e87c3958448f477dc9d5675b90
Created December 20, 2023 19:02
libcocos2d 2.113 -> 2.200
ADDED IN 2.2
?addToVertices@CCLayerColor@cocos2d@@QAEXVCCPoint@2@00@Z
?addPrioTargetedDelegate@CCTouchDispatcher@cocos2d@@QAEXPAVCCTouchDelegate@2@H_N@Z
?onTextFieldInsertText@CCTextFieldDelegate@cocos2d@@UAE_NPAVCCTextFieldTTF@2@PBDHW4enumKeyCodes@2@@Z
?updateEmissionRate@CCParticleSystem@cocos2d@@UAEXXZ
?getStartSizeEqualToEnd@CCParticleSystem@cocos2d@@QBE_NXZ
?fastRemoveObjectAtIndexChild@CCArray@cocos2d@@QAEXI@Z
?setFadeInTime@CCParticleSystem@cocos2d@@QAEXM@Z
?getPreviousPriority@CCLayer@cocos2d@@UAEHXZ
?applySmoothFix@CCDirector@cocos2d@@QAEXXZ