felixangell / strife Goto Github PK
View Code? Open in Web Editor NEWa simple 2d game framework
Home Page: https://strife.felixangell.com
License: MIT License
a simple 2d game framework
Home Page: https://strife.felixangell.com
License: MIT License
overhead on calling out to c is pretty slow.
the wrapper could be implemented in C and then wrapped in Go.
this means functions that are commonly found together than be grouped together.
this will be done probably after the audio api is polished.
i think the c shim should be abstracted enough that perhaps an alternative to SDL can be used?
only one c file needs to be used really since strife is a relatively light weight/minimal wrapper.
A lot of the SDL events are missing or not fully defined in the code.
More primitive shape rendering, specifically: lines, polygons, ovals? I don't recall SDL to have these in the standard library so this might be a bit tedious.
sdl2 is not mentioned in the quick start. What should be installed for this prerequisite?
~ $ go get github.com/felixangell/strife
# pkg-config --cflags sdl2
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
pkg-config: exit status 1
These need to be fixed properly as they were slapped in to get everything to compile a while back ๐ฅ
This call does not work on Windows 7. Commenting out the EnableDPI() call fixes the problem.
panic: Failed to load Shcore.dll: The specified module could not be found.
goroutine 1 [running, locked to thread]:
syscall.(*LazyProc).mustFind(0xc042209140)
C:/Go/src/syscall/dll_windows.go:280 +0x5f
syscall.(*LazyProc).Call(0xc042209140, 0xc0422185d8, 0x1, 0x1, 0x4b6197, 0xc042188180, 0x80, 0x34)
C:/Go/src/syscall/dll_windows.go:301 +0x36
github.com/felixangell/strife.EnableDPI()
C:/Users/xx/go/src/github.com/felixangell/strife/dpi_windows.go:30 +0x110
github.com/felixangell/strife.SetupRenderWindow(0x500, 0x2d0, 0xc0422185c0, 0x10)
C:/Users/xx/go/src/github.com/felixangell/strife/window.go:183 +0x133
main.main()
C:/Users/xx/go/src/github.com/felixangell/phi/main.go:85 +0xee
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.