Rust 编写的模块化游戏引擎 piston

码农软件 · 软件分类 · 游戏开发包 · 2019-10-05 07:14:09

软件介绍

piston 一个用户友好的游戏引擎,用 Rust 编写。

Piston 项目来自众多开发者的协作,用 2D、3D 库,事件编程,AI,图像处理等等。通过共享维护,我们有更多的时间来创建新的东西。项目主要领域:

  • 图形,2D 和 3D

  • Rust 游戏设计风格

  • 交互应用

  • AI 编程

  • 动画

  • 声效和音乐

  • 网络

例子

extern crate piston_window;
use piston_window::*;
fn main() {    let window: PistonWindow = 
        WindowSettings::new("Hello Piston!", [640, 480])
        .exit_on_esc(true).build().unwrap();    for e in window {
        e.draw_2d(|c, g| {
            clear([1.0; 4], g);
            rectangle([1.0, 0.0, 0.0, 1.0], // red
                      [0.0, 0.0, 100.0, 100.0],
                      c.transform, g);
        });
    }
}

依赖示意图

dependencies

本文地址:https://codercto.com/soft/d/16065.html

Hibernate

Hibernate

James Elliott / O'Reilly Media, Inc. / 2004-05-10 / USD 24.95

Do you enjoy writing software, except for the database code? Hibernate:A Developer's Notebook is for you. Database experts may enjoy fiddling with SQL, but you don't have to--the rest of the appl......一起来看看 《Hibernate》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试