Skip to content

Instantly share code, notes, and snippets.

View amirrajan's full-sized avatar
💭
Working on DragonRuby Game Toolkit and RubyMotion

Amir Rajan amirrajan

💭
Working on DragonRuby Game Toolkit and RubyMotion
View GitHub Profile
@amirrajan
amirrajan / 00.md
Last active April 15, 2024 05:35
Flappy Bird - DragonRuby Game Toolkit: Apples to Apples
apples-to-apples.mp4
nani.mp4
@amirrajan
amirrajan / Program.cs
Last active April 5, 2024 12:45
C# Dynamic
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Collections;
using System.Diagnostics;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;
@amirrajan
amirrajan / tutorial.html
Created March 24, 2024 05:00
DragonRuby Fiddle Tutorial Example
<html>
<head>
<title>DragonRuby - Warp Drive Tutorial</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/styles/default.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/highlight.min.js"></script>
<script src="tutorial.js"></script>
<link rel="stylesheet" href="tutorial.css" />
</head>
<body>
@amirrajan
amirrajan / main.rb
Created March 23, 2024 14:51
DragonRuby Game Toolkit - Random Hack and Slash
class Game
attr_gtk
def request_action name, at: nil
at ||= state.tick_count
state.player.requested_action = name
state.player.requested_action_at = at
end
def new_player
@amirrajan
amirrajan / main.rb
Last active March 8, 2024 07:48
DragonRuby Game Toolkit - Shader Tech Demo https://www.youtube.com/watch?v=LZgvvU91yyI
class Game
attr_gtk
def tick
defaults
render
input
calc
end
@amirrajan
amirrajan / dragonruby-mruby.patch
Created March 4, 2024 04:34
Patches to mRuby that DragonRuby Game Toolkit has made.
commit d387b42b5c0be25883a933160e9f8f636f13b4dd
Author: Amir Rajan <ar@amirrajan.net>
Date: Sun Mar 3 21:54:41 2024 -0600
patches DragonRuby has made to mRuby 3.0.0
diff --git a/codespell.txt b/codespell.txt
new file mode 100644
index 000000000..dcc0ddb43
--- /dev/null
@amirrajan
amirrajan / init.el
Last active March 2, 2024 18:40
Emacs minimal init.el for Mac (evil and magit only)
(require 'package)
;; Emacs has an official repository of packages and a more current
;; unofficial one. Melpa is the 'unoffical one' (which in this
;; case translates to more up to date, newer, and by extension,
;; a bit more volatile). The official repo is called org. This
;; repo is slow changing and extremely stable (but doesn't have
;; all the cool/cutting edge packages that are being used).
(push '("melpa" . "http://melpa.org/packages/") package-archives)
(push '("org" . "http://orgmode.org/elpa/") package-archives)
@amirrajan
amirrajan / 0_preview.md
Last active March 2, 2024 02:26
DragonRuby Game Toolkit - elements mixing/crafting game
crafting.mp4