Skip to content

Instantly share code, notes, and snippets.

View Rouli-M's full-sized avatar
🎯
Focusing

Martin Rouli-M

🎯
Focusing
View GitHub Profile
@mrhelmut
mrhelmut / style.md
Last active December 26, 2022 10:06
Coding style for pure C# game development projects

Coding style

Over the years of porting pure C# games to consoles, we defined a set of coding guidelines which ensures that porting and performances go smooth on every possible platforms and C# runtimes.

The main reason for these guidelines is that C# runtimes on exotic platforms might be very outdated and/or limited in language features due to the very nature of using Ahead-of-Time (AOT) compilation, or even sometime going as far as transpiling IL Code to C++. Some runtimes are also extremely sensitive to garbage collections, which can produce very visible micro freezes during gameplay, hence our guidelines also target the limitation of garbage.

These guidelines will be very counter-intuitive to enterprise C# developers. Bear in mind that C# is a language that wasn't designed for games and performance in the first place, that using it in this context isn't effecient, and that pretty old C# runtimes mean that we have to bend the language to make it fit our needs. Also keep in mind that we can't count on

@idbrii
idbrii / ShakeIn2D.cs
Last active February 2, 2024 15:13
Unity camera shake 2d
// Released under CC0 and Unlicense
// Demo: https://imgur.com/a/9h3c6W5
// Screenshake should move the camera around smoothly but unpredictably. It
// shouldn't jitter the camera around in a way that makes it hard to follow
// what's on screen. That's why you should use continuous oscillating functions
// to produce your shake instead of random values. I also think it's useful to
// make a directional shake to help connect the shaking to the thing that
// caused it.
@gullyn
gullyn / flappy.html
Last active May 4, 2024 15:35
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
@sebasten
sebasten / E32018.md
Last active February 12, 2024 22:02
Planning E3 2018

E3 2018

Vidéos de jeux (par date) | Vidéos de jeux (par ordre alphabétique) | Liens utiles | Une question, une remarque, un truc que j'ai oublié ? DM @netsabes

Le planning des confs au format .ics pour l'ajouter à votre 📆 agenda est ici.

Tous les horaires sont indiqués à l'heure de Paris.

⚠️ Quelques conseils de survie (parce que bon, c'est des jeux vidéo et on fait des blagues sur Twitter, mais c'est aussi du travail à des horaires pénibles) : évitez de perdre votre nuit à tout regarder en direct, ça ne sert pas à grand chose et au réveil on peut voir les mêmes vidéos. Si vous le faites quand même, évitez de manger trop gras, buvez de

@CharlieScarver
CharlieScarver / AdventureTime.csv
Last active November 10, 2024 10:39 — forked from austinpray/AdventureTime.csv
List of important adventure time episodes
Season Episode Title Reason
1 5 The Enchiridion A good intro to the series, plus introduces the important Enchiridion
1 2 Trouble in Lumpy Space* Introduces LSP (episode out of order)
1 3 Prisoners of Love Introduces Ice King and his obsession (episode out of order)
1 7 Ricardio the Heart Guy Finn and PB development, Sets a returning plot
1 8 Business Time* First mention of Ooo being post-apocalyptic
1 9 My Two Favorite People Intros the Jake and Lady Rainicorn plotline
1 10 Memories of Boom Boom Mountain A look at how Finn was adopted into Jake's Family
1 12 Evicted! Intros Marceline