Skip to content

Instantly share code, notes, and snippets.

View oblerion's full-sized avatar

Magnus Oblerion oblerion

View GitHub Profile
@oblerion
oblerion / install-devkitpro.bash
Last active September 9, 2021 11:59
is script easly install / setup devkitpro on ubuntu , i only make this script . it only make for v1.0.2 of devkitpro
#! /bin/bash
# script ver b0.2
#MIT License
#Copyright (c) 2021 oblerion
#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
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
@oblerion
oblerion / api.lua
Created March 10, 2022 14:12
ZeroBrane Studio autocomplete and interpreter for TIC-80
-- file: api/lua/tic80.lua
-- TIC-80 API for ZBStudio
-- see [TIC-80 wiki](https://github.com/nesbox/TIC-80/wiki/)
local API = {
-- Special functions
TIC = {
type = "function",
description = [[Main function. It's called at 60 fps (60 times every second).]],
args = "()",
@oblerion
oblerion / rayImage.h
Last active February 13, 2024 14:36
raylib get/set pixel of Image
#ifndef rayImage_h
#define rayImage_h
#include "raylib.h"
// void SetPixel(Image* img,int x,int y,Color col)
#define SetPixel ImageDrawPixel
// Color GetPixel(Image img,int x,int y)
#define GetPixel GetImageColor
@oblerion
oblerion / binairy_cat.h
Last active December 14, 2023 12:07
cat binairy file in c
#ifndef BINAIRY_CAT_H
#define BINAIRY_CAT_H
#include <stdlib.h>
#include <stdio.h>
bool FileExists(char* pfile)
{
FILE* fic = fopen(pfile,"r");
if(fic!=NULL)
{
@oblerion
oblerion / raylib2.h
Last active January 30, 2024 15:05
raylib.h extend header
// raylib2 ver 0.1
// describle : raylib extend with new function
// author : oblerion
// license : MIT 2024
#pragma once
#include "raylib.h"
#include "raymath.h"
// ---------- declare function --------------