Skip to content

Instantly share code, notes, and snippets.

@matula
matula / rmmv_window_doc.md
Created April 7, 2025 21:36
RPG MAker MV documentation for rpg_windows.js

RPG Maker MV Window Script Documentation (rpg_windows.js v1.6.2)

This document provides an overview of the Window classes defined in the rpg_windows.js file for RPG Maker MV. These classes form the basis for all the menus, message boxes, and other interface elements seen in the game.

Window_Base

The superclass for almost all windows in the game. It provides core functionalities like drawing text, icons, faces, gauges, managing windowskins, opacity, padding, and basic open/close animations.

Key Properties:

@matula
matula / rmmv_scenes_docs.md
Created April 3, 2025 19:39
RPG Maker MV documentation for "rpg_scenes.js"

RPG Maker MV Scene Script Documentation (rpg_scenes.js v1.6.2)

This document provides an overview of the Scene classes defined in the rpg_scenes.js file for RPG Maker MV. Scenes manage the different screens and states of the game, such as the title screen, map, menus, and battles.

Scene_Base

The superclass for all scenes in the game. It provides fundamental functionalities like managing fade-in/out, window layers, and the scene lifecycle.

Properties:

@matula
matula / rmmv_core_docs.md
Created March 31, 2025 17:38
Documenting the rpg_core.js file from RPG Maker MV

RPG Maker MV Core Script Documentation (rpg_core.js v1.6.2)

This document provides an overview of the classes, methods, and properties defined in the rpg_core.js file for RPG Maker MV.

JavaScript Extensions (JsExtensions)

This section adds utility methods to standard JavaScript objects.

  • Number.prototype.clamp(min, max): Returns a number limited to the given range (min, max).
  • Number.prototype.mod(n): Returns a modulo value that is always positive.

Keybase proof

I hereby claim:

  • I am matula on github.
  • I am matula (https://keybase.io/matula) on keybase.
  • I have a public key ASDWtZbNI9uI4Tfizwme1WTwq2foq7_3bxY5_cqgIbYd2go

To claim this, I am signing this object:

Library "Roku_Ads.brs"
sub init()
print "PlayerTask.brs [init]"
m.top.functionName = "playContentWithAds"
m.top.id = "PlayerTask"
end sub
sub playContentWithAds()
print "PlayerTask.brs [playContentWithAds]"
@matula
matula / PushNotifications.php
Created February 22, 2017 03:41 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
@matula
matula / awesm.md
Last active February 19, 2024 16:23
Awesome PHP stuff in one Gist
var param = "something";
var my_src = "{{ URL::route('route', ['myparam' => 'xxx' ]) }}";
var src = my_src.replace('xxx', param);
{"public":true,"files":{"undefined.skema":{"content":"[{\"name\":\"Bears\",\"color\":\"Blue\",\"position\":{\"x\":177,\"y\":85},\"modelclass\":\"Bear\",\"increment\":false,\"timestamp\":false,\"softdelete\":false,\"column\":[{\"colid\":\"c217\",\"name\":\"id\",\"type\":\"increments\",\"length\":\"0\",\"order\":0,\"defaultvalue\":\"\",\"enumvalue\":\"\"},{\"colid\":\"c218\",\"name\":\"name\",\"type\":\"string\",\"length\":\"200\",\"order\":1,\"defaultvalue\":\"\",\"enumvalue\":\"\"},{\"colid\":\"c219\",\"name\":\"danger_level\",\"type\":\"string\",\"length\":\"200\",\"order\":2,\"defaultvalue\":\"\",\"enumvalue\":\"\"}],\"relation\":[{\"extramethods\":\"\",\"foreignkeys\":\"bear_id, picnic_id\",\"name\":\"picnics\",\"relatedmodel\":\"Picnics\",\"relationtype\":\"belongsToMany\",\"usenamespace\":\"\"}],\"seeding\":[]},{\"name\":\"Picnics\",\"color\":\"Red\",\"position\":{\"x\":201,\"y\":520},\"modelclass\":\"Picnic\",\"increment\":\"\",\"timestamp\":\"\",\"softdelete\":\"\",\"column\":[{\"colid\":\"c272\",\"nam
@matula
matula / keybase.md
Created September 23, 2014 17:19
keybase.md

Keybase proof

I hereby claim:

  • I am matula on github.
  • I am matula (https://keybase.io/matula) on keybase.
  • I have a public key whose fingerprint is 5DFF E2A2 72B3 3704 05F0 B08B DCF5 E459 7753 DC6D

To claim this, I am signing this object: