Giter VIP home page Giter VIP logo

golang_ebiten_game_demo's Introduction

g

通过golang的ebiten引擎做的类传奇小demo

!转载请注明来源

1. 下载源码
2. go get | go mod vendor 
3. go run main.go  或   go build

控制说明

  1. 目前demo 支持 鼠标右键点击移动 。
  2. 点击技能按钮,释放技能。

更新履历

  1. 左上角信息提示追加
  2. 实现鼠标移动
  3. 攻击动作追加和UI追加
  4. 游戏分辨率提升+ 游戏素材二进制打包(为了支持浏览器运行)使用embed
  5. 优化重复代码,提高代码健壮性和可维护性
  6. 增加武器和技能显示
  7. 优化代码+减少map使用+使用goroutine协程加载素材
  8. 添加玩家和怪物类定义
  9. 使用图集代替散图,没使用图集之前内存占用800Mb,使用图集之后内存占用降低到240Mb左右。
  10. 增加新技能,实现资源切换。

运行效果如下

web版

2

pc版

1

2

MacOs

スクリーンショット 2022-03-26 23 13 42

golang_ebiten_game_demo's People

Contributors

529124368 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.