Fun is a javascript entity-component-system game framework.
Entities is represented by a plain javascript object.
// The player entity
const player = {
}
/// <summary> | |
/// Represents an abstract generic message. | |
/// </summary> | |
public abstract class Message<T> { | |
private readonly T content; | |
public Message(T content) { | |
this.content = content; | |
} |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public sealed class Container | |
{ | |
private Dictionary<Type, Type> concreteTypes = new Dictionary<Type, Type>(); | |
private Dictionary<Type, object> objects = new Dictionary<Type, object>(); |
rem konversi satu directory | |
for %%i in (*.mp4) do call conv "%%i" |
public interface ISubscriber<T> | |
{ | |
void Receive(T message); | |
} | |
internal class SubscriberList : IEnumerable<object> | |
{ | |
private Dictionary<Type, List<object>> subscription = new Dictionary<Type, List<object>>(); |
class Orderable : IOrderable | |
{ | |
private int order; | |
private string name; | |
public Orderable(int order, string name) | |
{ | |
this.order = order; | |
this.name = name; |
/* | |
Composable 3x3 matrix module. | |
Exported functions: | |
- createIdentity (): Matrix | |
- createTranslation (tx: Number, ty: Number): Matrix | |
- createScaling (sx: Number, sy: Number): Matrix | |
- createRotation (a: Number): Matrix | |
- toRadians (d: Number): Number | |
- createRotationDegrees (a: Number): Matrix |
using System; | |
/// <summary> | |
/// Implements a pool of T. | |
/// </summary> | |
public interface IPool<T> | |
where T : class, new() | |
{ | |
T Use(); |
using OpenTK; | |
using SkiaSharp; | |
using System; | |
class SKGameWindow : GameWindow | |
{ | |
private GRContext context; | |
protected override void OnLoad(EventArgs e) | |
{ |
node -e "const e=require('express');e().use(e.static('.')).listen(80)" |