(incomplete tutorial)
/*:
* @author Me
* @plugindesc This plugin outputs hello world
*| clang++ main.cpp $(pkg-config libcamera --libs --cflags) -std=gnu++20 |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef void*(*allocator_alloc_fn)(void* userData, size_t cap); | |
| typedef void (*allocator_free_fn)(void* userData, void* ptr); | |
| typedef void*(*allocator_realloc_fn)(void* userData, void* ptr, size_t cap); | |
| typedef struct _allocator { | |
| allocator_alloc_fn alloc; | |
| allocator_free_fn free; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define Array(Type) struct array_##Type | |
| #define DefineArray(Type) struct array_##Type { Type* elements; int len; int cap; } | |
| #define array_get(array, index) (array).elements[index] | |
| #define array_set(array, value, index) (array).elements[index] = value | |
| #define create_Array(Type, cap) (struct array_##Type) { (Type*) malloc(cap * sizeof(Type)), 0, cap } | |
| #define destroy_Array(array) free((array).elements) | |
| #define array_append(array, value) (array).elements[(array).len++] = value |
| require 'beaver' | |
| project = Project.new("MyProject") | |
| project.set_configs("Debug", "Release") | |
| # Set configuration options for the C language | |
| project.c_configs = { | |
| "Debug" => C::Configuration.new(cflags: ["-DDEBUG"]), | |
| "Release" => C::Configuration.new(cflags: ["-DRELEASE"]) | |
| } | |
| project.default_config = "Debug" |
| use winit::{ | |
| window::Window, | |
| event::{Event, WindowEvent, self}, | |
| event_loop, | |
| }; | |
| use wgpu::util::DeviceExt; | |
| use anyhow::Result; | |
| #[repr(C)] | |
| #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] |
| // | |
| // This Source Code Form is subject to the terms of the Mozilla Public | |
| // License, v. 2.0. If a copy of the MPL was not distributed with this | |
| // file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
| // | |
| // Author: Jonas Everaert | |
| // | |
| // You can change these however you like | |
| #define _TU_TYPE_PREFIX(Type) T_##Type |
| // | |
| // RWLock.swift | |
| // | |
| // MIT License | |
| // | |
| // Copyright (c) 2023-2024 Jonas Everaert | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights |
| 'Parse a coordinate to an array of numbers containing hours, minutes, seconds (still represented as strings) | |
| Private Function ParseCoOne(Co As String) As String() | |
| Dim parsed(3) As String | |
| Dim tmp() As String | |
| tmp = Split(Co, "°") | |
| parsed(0) = tmp(0) | |
| tmp = Split(tmp(1), "'") | |
| parsed(1) = tmp(0) |
This plugin for RPG Maker MV (should work for MZ as well) moves any event marked with to the player.
Copy playerFollower.js to project folder > js > plugins and then select the plugin in the plugin menu.