This file contains hidden or 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 "ram"; | |
import "entity"; | |
import "directions"; | |
import "random"; | |
namespace ai_wander { | |
const direction_wait_base : [u8] = [60]; | |
const direction_wait_random : [u8] = [60]; | |
const wander_speed_lo : [u8] = [128]; | |
const wander_speed_hi : [u8] = [0]; |
This file contains hidden or 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
// Linearly interpolate between two values using progress as weight between them. | |
// | |
// Arguments: | |
// b = start (0 .. 255) | |
// c = end (0 .. 255) | |
// e = progress (0 .. 64), | |
// 0 = 100% start, 0% end | |
// 32 = 50% start, 50% end | |
// 64 = 0% start; 100% end | |
// |
This file contains hidden or 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 WIZ_UNIQUE_PTR_H | |
#define WIZ_UNIQUE_PTR_H | |
#include <cstddef> | |
#include <type_traits> | |
#ifdef _MSC_VER | |
#define WIZ_FORCE_INLINE __forceinline | |
#elif defined(__clang__) || defined(__GNUC__) | |
#define WIZ_FORCE_INLINE __attribute__((always_inline)) |
This file contains hidden or 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
CASTLEVANIA2 BEL | |
---------------- | |
5 sample(s) captured. | |
Sample #1 | |
--------- | |
HEX: |
OlderNewer