Skip to content

Instantly share code, notes, and snippets.

View andresan87's full-sized avatar

André Santee andresan87

View GitHub Profile
@andresan87
andresan87 / Format string into text box
Last active December 18, 2015 05:58
This Ethanon snippet shows how to format a string providing dynamic text box sizes that automatically break lines to fit into specific column widths.
void main()
{
LoadScene("empty", "", "onSceneUpdate");
}
string[] split(string str, const string c)
{
string[] v;
uint pos;
while ((pos = str.find(c)) != NPOS)
@andresan87
andresan87 / admob-how-to.md
Last active December 19, 2015 01:59
How I added AdMob ads into my standard Ethanon projects.

This gist targets users who already work with Ethanon on Android and need a few hints on how to implement AdMob banners on their own projects.

I decided to write this document because the sample code presented by the official AdMob-android docs cannot be easily implemented without changes in the engine's project. Due to the fact that the engine does not use xml-layouts.

The first steps are the same as described in the Admob official docs, [here] 1.

What's different

@andresan87
andresan87 / items.json
Last active September 30, 2025 12:31
Magic Rampage full item list
[
{
"name":"Abyssal Blade Sword",
"name_en":"Abyssal Blade",
"name_de":"Abgründiges Schwert",
"name_es":"Hoja Abisal",
"name_fr":"Lame abyssale",
"name_it":"Lama abissale",
"name_pt":"Lâmina Abissal",
"name_ru":"Клинок бездны",