plane
Yet another attempt at making a simple game framework/engine.
Yet another attempt at making a simple game framework/engine.
License: MIT License
Yet another attempt at making a simple game framework/engine.
Maybe using golang.org/x/mobile/exp/audio/al
?
The plan is as follows:
engine.CreateWindow()
with engine.Init()
, and have it take a new type with global engine initialization parameters.Backend
. This will provide all of the necessary details for running everything. Window initialization, event mapping, etc. It'll have several other interfaces as well, such as Window
.Backend
parameter is nil, a default will be used. Probably pixel
.This, unfortunately, could get annoyingly complicated as the engine becomes more complicated itself. The plan may have to be altered to make things a bit simpler. The main complication is likely to arise from requiring clients to load images and whatnot through the backend system's abstractions.
The engine should provide a UI system in a separate ui
package.
Object
that can be added to an ObjectGroup
and functions as a widget manager.Widget
should be a relatively simple interface with a variety of implementations provided. Widgets should be able to draw themselves, but, unlike an Object
, the bounds that they must be drawn into are provided when Draw()
is called. This allows their sizes to be managed by the UI system.SetProgress()
method, the bar is initialized with a reference to a func() float64
which is called during the update step to get the current progress value. This allows the client to simply link a, for example, health bar to the character's actual health by having the function just pull the real-time health value when it's called.Container
widget implementation which can be given several different implementations of a Layout
interface, or possibly Layout
function. This flattens the hierarchy and simplifies things quite a bit.Container
s, can be instantiated and configured in a single function call.ButtonUp
, ButtonJustPressed
, ButtonDown
, etc.) be passed to the value functions.Widgets:
func() string
)func() string
)func() float64
)???
)func() engine.Sprite
?)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.