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

iGen

iGen

Jean M. Twenge PhD / Atria Books / 2017-8-22 / USD 27.00

A highly readable and entertaining first look at how today’s members of iGen—the children, teens, and young adults born in the mid-1990s and later—are vastly different from their Millennial predecesso......一起来看看 《iGen》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码