Skip to content

Instantly share code, notes, and snippets.

View shonumi's full-sized avatar

D. S. Baxter shonumi

View GitHub Profile
Ohenro-san Pedometer Technical Documentation 0.3
November 27, 2018
Shonumi aka D.S. Baxter
***************************************************
1. Introduction
***************************************************
Ohenro-san: Hosshin no Dojo is a Gamecube title released on April 23, 2003 by PIN Change. It was designed to virtually simulate the Ohenro pilgrimage to various temples in the Shikoku region of Japan. Unique to this game were a special, 3-button walking pad and a pedometer nicknamed "Inro-kun". This pedometer tracks real-life steps and can transfer them back to the game to update progress. The pedometer connects to the 4th controller port.
@shonumi
shonumi / gist:258e71b31e8d55561001ea4f1dbe5661
Last active May 9, 2019 01:38
Ohenro-San Pedometer Documentation
Ohenro-san Pedometer Technical Documentation 0.2
November 27, 2018
Shonumi aka D.S. Baxter
***************************************************
1. Introduction
***************************************************
Ohenro-san: Hosshin no Dojo is a Gamecube title released on April 23, 2003 by PIN Change. It was designed to virtually simulate the Ohenro pilgrimage to various temples in the Shikoku region of Japan. Unique to this game were a special, 3-button walking pad and a pedometer nicknamed "Inro-kun". This pedometer tracks real-life steps and can transfer them back to the game to update progress. The pedometer connects to the 4th controller port.
#include <fstream>
#include <vector>
#include <iostream>
#include "common.h"
int main()
{
std::ifstream in_file("sav.bin", std::ios::binary);
Barcode Boy Technical Documentation 0.1
July 4th, 2017
Shonumi aka D.S. Baxter
***************************************************
Introduction
***************************************************
Barcode Taisen Bardigun Technical Documentation 0.2
May 27th, 2017
Shonumi aka D.S. Baxter
***************************************************
Introduction
***************************************************
@shonumi
shonumi / affine_wip_3.0
Created October 8, 2016 20:17
Don't lose this.
#include <iostream>
#include <string>
#include <cmath>
#include <SDL2/SDL.h>
#include "common.h"
struct affine_data
{
@shonumi
shonumi / affine_wip_2.0
Created September 25, 2016 13:44
Don't lose this.
#include <iostream>
#include <string>
#include <cmath>
#include <SDL2/SDL.h>
#include "common.h"
struct affine_data
{
@shonumi
shonumi / affine_wip
Created September 4, 2016 21:58
Don't lose this.
#include <iostream>
#include <string>
#include <cmath>
#include <SDL2/SDL.h>
#include "common.h"
u32 get_pixel_pos(int x, int y)
{
* D.S. Baxter
* Febuary 12th, 2016
========================================
= DMG/GBC screen stretching on the GBA =
========================================
GBA hardware has the ability to stretch the final image drawn on-screen when running DMG or GBC games. On applicable hardware (e.g. not the Micro, nor the "fat" or lite DS), the L and R triggers toggle this feature on and off respectively. The default mode is to display the DMG/GBC image in the middle of the GBA screen with black borders. The dimensions are as follows:
Top and bottom borders (240x8 pixels, or 30x1 tiles)
Original...
// If analog input is beyond dead zone, set it
if (CheckDeadZone(val)) {
controller.pad_state.hex |= KeyMap::GetPadKey({pad_id, joypad_id}).hex;
} else {
controller.pad_state.hex &= ~KeyMap::GetPadKey({pad_id, joypad_id}).hex;
}