Skip to content

Instantly share code, notes, and snippets.

View SolarLune's full-sized avatar

SolarLune SolarLune

View GitHub Profile
// Copyright 2018 The Ebiten Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// Copyright 2018 The Ebiten Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@SolarLune
SolarLune / input.go
Created January 11, 2023 18:56
An input system I made for my Golang game
type Input interface {
Poll() float64
}
type GamepadAxisInput struct {
ID ebiten.GamepadID
Axis ebiten.StandardGamepadAxis
Direction int
Deadzone float64
package main
import (
"errors"
"fmt"
"image/png"
"math"
"os"
"runtime/pprof"
"time"
version: 0.5.0.{build}
image:
- Ubuntu
- macos-mojave
- Visual Studio 2017
platform:
- x64
@SolarLune
SolarLune / tiled_loader.py
Created May 15, 2017 03:47
A Tiled map loader I wrote in Python.
import math
from enum import Enum
import os
import pyglet
import pymunk
from pyglet.gl import *
from xml.etree import ElementTree
from src.pyglethelper.system.gameobject import GameObject