Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kasworld/gowasm3dgame
go webassembly webgl game framework
https://github.com/kasworld/gowasm3dgame
golang multiplayer-online-game three-js webassembly webgl websocket
Last synced: 4 months ago
JSON representation
go webassembly webgl game framework
- Host: GitHub
- URL: https://github.com/kasworld/gowasm3dgame
- Owner: kasworld
- License: apache-2.0
- Created: 2019-12-07T03:27:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T06:45:07.000Z (about 4 years ago)
- Last Synced: 2024-09-29T05:23:21.965Z (5 months ago)
- Topics: golang, multiplayer-online-game, three-js, webassembly, webgl, websocket
- Language: Go
- Homepage:
- Size: 8.76 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webgl을 사용하는 여러 종류의 게임(stage)을 지원하는 온라인 게임 프레임웍
# 사전 준비 사항 ( goguelike 의 INSTALL.md 참고)
준비물 : linux(debian,ubuntu,mint) , chrome web brower , golang
goimports : 소스 코드 정리, import 해결
go get golang.org/x/tools/cmd/goimports
버전 string 생성시 사용 : windows, linux 간에 같은 string생성
go get github.com/kasworld/makesha256sum
프로토콜 생성기 : https://github.com/kasworld/genprotocol
go get github.com/kasworld/genprotocol
Enum 생성기 : https://github.com/kasworld/genenum
go get github.com/kasworld/genenum
Log 패키지 및 커스텀 로그레벨 로거 생성기 : https://github.com/kasworld/log
go get github.com/kasworld/log
install.sh 실행해서 genlog 생성# 개요
여러 종류의 stage를 하나의 client를 사용해 실행 가능합니다.
예제
2d stage like gowasm2dclient gl
![screenshot](2d.png)https://www.youtube.com/watch?v=U3k1cbRbZNw
3d stage
![screenshot](3d.png)https://www.youtube.com/watch?v=Gfl7N7aNESI
remake of [go4game](https://github.com/kasworld/go4game)
꽤 예전에 서버 기반 게임 프레임웍 으로 만들었던 go4game을 remake 한 프로젝트 입니다.
서버 기반 게임 제작을 위한 프레임웍/라이브러리 들인
[genprotocol](https://github.com/kasworld/genprotocol) 서버 클라이언트가 사용할 프로토콜 생성, 관리
[argdefault](https://github.com/kasworld/argdefault) : config와 command line arguments
[prettystring](https://github.com/kasworld/prettystring) : struct 의 string 화 / admin web , debug용
[genenum](https://github.com/kasworld/genenum) : enum 의 생성, 관리
[log](https://github.com/kasworld/log) : 전용 log package의 생성, 사용
[signalhandle](https://github.com/kasworld/signalhandle) : signal을 관리해서 프로그램의 linux 서비스화, start,stop,forcestart,
들을 사용해서 만들어 봤습니다.
go4game 이 원래 2d 게임? 인 wxgame2를 3d 화 해본 것이었기에
gowasm3dgame 은 [gowasm2dgame](https://github.com/kasworld/gowasm2dgame) 의 3d 버전에 해당합니다.
## 서버 실행후 브라우저 서비스 포트 (config에서 수정 가능)
open admin web
http://localhost:34201/
open client web
http://localhost:34101/# windows 에서 작동시키려면?
signalhandlewin을 사용하는 rundriver/serverwin.go 를 사용하시면 됩니다.