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

Data Structures and Algorithms in Java

Data Structures and Algorithms in Java

Robert Lafore / Sams / 2002-11-06 / USD 64.99

Data Structures and Algorithms in Java, Second Edition is designed to be easy to read and understand although the topic itself is complicated. Algorithms are the procedures that software programs use......一起来看看 《Data Structures and Algorithms in Java》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

SHA 加密
SHA 加密

SHA 加密工具