Git Product home page Git Product logo

chinesechessredux's Introduction

**象棋重制计划

最新版运行截图

当前游戏运行时截图

简介

一直有重制当年本科时制作的游戏的想法,这段时间忙里偷闲终于打算开始做了。

框架选的是 Libgdx,主要看中了它多平台发布、学习成本较低、编程自由度较高的特点。基于 Java 开发,在重制过程中也尽量用上一些设计模式,尽量发挥 Java 作为强类型语言的优势。

目前第一步打算把原有核心功能实现,图像、声音资源也沿用之前的。等核心实现之后可以做一些优化,包括 UI 的优化,风格的统一,以及游戏机制上的创新。

当年的游戏截图

开局

开局

当时是大二的暑期实习作业,要求用 Visual Basic 实现一个双人对弈的**象棋。代码全部是面向过程的……质量不忍直视,所以才有了现在的重制计划。 开局和胜利时的画面都采集自游戏三国志😁

将军

将军

当时给红黑双方指定了阵营:红方为刘备带领的蜀国,黑方为曹操带领的魏国。 在将军时会划过武将的头像,同时有一声“杀”的怒吼(采集自三国杀😄) 每个棋子都分配了一个武将,比如红炮是黄忠,红马是赵云,黑士是贾诩,黑相是司马懿等等。

胜利

胜利

游戏分三种模式:普通模式、限时模式、挑战者模式

  1. 普通模式下,双方进行对弈,没有时间限制。赢者得三分,平局双方各得一分,输者不得分。排行榜会记录下所有玩家的得分排名;
  2. 限时模式下,在普通模式的基础上加入了一个计时器,如果倒计时结束玩家还没动子,则判失败;
  3. 挑战者模式下,双方将进行多回合积分对战,积分规则和普通模式一样,赢者作为擂主可以迎接下一局挑战者的挑战。

工作计划与进度

  • 棋盘坐标映射
  • 棋子状态
  • 棋子走子
  • 棋子吃子
  • 棋子移动范围和攻击范围的显示
  • UI 界面
  • 轮流走子
  • 将军的判断与显示
  • 棋子与武将的映射关系
  • 开局与结束界面
  • 单个棋子的统计数值
  • Box2DLight 阴影渲染

chinesechessredux's People

Contributors

mengqi92 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.