Điểm qua faiface/pixel: 4.5k sao trên GitHub, viết chủ yếu bằng Go, thuộc nhóm Backend. A hand-crafted 2D game library in Go
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This repo is not under active development anymore and has been archived. Continued development has been migrated to Pixel2. A big thank you to faiface for creating this awesome library and for all the hard work put into it. We encourage old and new users to check out the new repo and contribute to it.
Pixel
A hand-crafted 2D game library in Go. Take a look into the features to see what it can
do.
go get github.com/faiface/pixel
If you are using Modules (Go 1.11 or higher) and want a mutable copy of the source code:
git clone https://github.com/faiface/pixel # clone outside of $GOPATH
cd pixel
go install ./...
See requirements for the list of libraries necessary for compilation.
All significant changes are documented in CHANGELOG.md.
Tutorial
The Wiki of this repo contains an extensive tutorial
covering several topics of Pixel. Here's the content of the tutorial parts so far:
Creating a Window
Drawing a Sprite
Moving, scaling and rotating with Matrix
Pressing keys and clicking mouse
Drawing efficiently with Batch
Drawing shapes with IMDraw
Typing text on the screen
Using a custom fragment shader
Examples
The examples repository contains a few
examples demonstrating Pixel's functionality.
To run an example, navigate to it's directory, then go run the main.go file. For example:
$ cd pixel-examples/platformer
$ go run main.go
Here are some screenshots from the examples!
Lights
Platformer
Smoke
Typewriter
Raycaster
Gizmo
Features
Here's the list of the main features in Pixel. Although Pixel is still under heavy development,
there should be no major breakage in the API. This is not a 100% guarantee, though.
More advanced graphical effects (e.g. blur) (solved with the addition of GLSL effects)
Tests and benchmarks
Vulkan support
Implementing these features will get us to the 1.0 release. Contribute, so that it's as soon as
possible!
Requirements
If you're using Windows and having trouble building Pixel, please check this
guide on the
wiki.
PixelGL backend uses OpenGL to render
graphics. Because of that, OpenGL development libraries are needed for compilation. The dependencies
are same as for GLFW.
The OpenGL version used is OpenGL 3.3.
On macOS, you need Xcode or Command Line Tools for Xcode (xcode-select --install) for required
headers and libraries.
On Ubuntu/Debian-like Linux distributions, you need libgl1-mesa-dev and xorg-dev packages.
On CentOS/Fedora-like Linux distributions, you need libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel mesa-libGL-devel libXi-devel libXxf86vm-devel packages.
See here for full details.
The combination of Go 1.8, macOS and latest XCode seems to be problematic as mentioned in issue
#7. This issue is probably not related to Pixel.
Upgrading to Go 1.8.1 fixes the issue.
Contributing
Join us in the Discord Chat!
Pixel is in, let's say, mid-stage of development. Many of the important features are here, some are
missing. That's why contributions are very important and welcome! All alone, I will be able to
finish the library, but it'll take a lot of time. With your help, it'll take much less. I encourage
everyone to contribute, even with just an idea. Especially welcome are issues and pull
requests.
However, I won't accept everything. Pixel is being developed with thought and care. Each
component was designed and re-designed multiple times. Code and API quality is very important here.
API is focused on simplicity and expressiveness.
When contributing, keep these goals in mind. It doesn't mean that I'll only accept perfect pull
requests. It just means that I might not like your idea. Or that your pull requests could need some
rewriting. That's perfectly fine, don't let it put you off. In the end, we'll just end up with a
better result.
Take a look at CONTRIBUTING.md for further information.
faiface/pixel thuộc nhóm Backend trên TopGit, cùng 8 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về faiface/pixel ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/faiface/pixel là nguồn chính thức.
faiface/pixel có bao nhiêu sao?
faiface/pixel có 4.5k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/faiface/pixel. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
faiface/pixel có phải mã nguồn mở không?
Có — faiface/pixel phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/faiface/pixel.
faiface/pixel có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho faiface/pixel. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
faiface/pixel là gì?
faiface/pixel (faiface/pixel) là dự án Go trên GitHub. Theo mô tả gốc: A hand-crafted 2D game library in Go
faiface/pixel so với các dự án Backend khác thế nào?
faiface/pixel được TopGit xếp vào nhóm Backend, với 4.5k sao GitHub và viết bằng Go. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc pixel có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về pixel.