【LWJGL2 WIKI】【辅助库篇】Slick-Util库:介绍

原文:http://wiki.lwjgl.org/wiki/Slick-Util_Library_-_Introduction
译注:获取地址和安装方法去原文里找吧,这里只翻译有用的部分。

What is the Slick-Util Library? Slick-Util库是什么?

它是一个可以用来读取各种图片、声音素材、字体的小型库。

Brief Introduction 简要介绍

为了正确地使用OpenGL显示图片用OpenAL播放声音,数据必须保证是某些特定的格式。但是除此之外,还有许多其他常用格式的素材(png, jpg, xm, ogg, wav等)。手动写格式读取器很浪费时间,还得专门去研究具体每个格式的储存和工作方式,因此一般用现成的库来做这部分工作。
以前LWJGL绑定了Devil和FMOD库来帮助读取图片和声音素材。但是它们属于本地库,需要使用不断维护和更新的java包装类,这与LWJGL奉行的“简易”理念相悖。Slick-Util是一个纯净的java替代,更加轻巧,只需要少量的维护,更易于使用。所以那些本地库都被移除掉,现在强烈推荐使用Slick-Util。

Why is it called Slick-Util? 为什么叫Slick-Util

Slick-Util实际上是Slick2D库(基于LWJGL的2D游戏库)的一个子集。因为Slick2D有一些功能可以在所有的LWJGL游戏里通用,所以创建了这样一个可以用于任何LWJGL程序(2D或3D皆可)的库供人使用。
如果你在寻找一个帮助图片渲染、精灵处理、游戏循环设置、地图块读取等功能的类库,那么与其用SlickUtil,不妨试试Slick2D。

Features 功能

Slick-Util为LWJGL提供以下功能:
- 用OpenGL读取各种格式图片(png, gif, jpg等)
- 用OpenAL读取各种声音素材(wav, xm, ogg等)
- 用OpenGL读取Unicode字体(译注:比如中文,貌似这个是目前看到的在OpenGL里最方便显示中文的方案之一了)

Where to get it 从哪里获取

Setting up the Slick-Util Library 安装库

见原文。

Tutorial Credit - Ninja Cave

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Book Description Most of the game development enthusiasts are ‘tinkerers’-people who are good at programming and know a lot about programming methods; however, they may have never written a complete game program, but would like to know how to create a program. Transitioning from programming to game development can often be difficult, however, Slick2D helps developers to create amazing games without having to deal with low level programming, and it simplifies many of the daunting tasks, such as rendering and window creation. This practical guide will help you to understand the different components of Slick2D. Throughout the course of this book, you will develop different components, and by the end of the book you will combine all of these components to assemble a complete game. Enabling you to add life to your games, this book will focus on the Slick2D game library. Starting with the installation and configuration of a game library, you will then move onto understanding the structure of a game. Throughout the book, you will be involved in developing different sections of a single game, which will help you to gain hands- on experience in understanding the Slick Workflow. Following on from this, you will be shown how to add additional features to your game such as adding input and music, while taking a detailed look at the render method. What you will learn from this book Set up the Slick2D workflow Render images, primitive shapes, strings, and more, to the screen Update the screen and utilize delta time Utilize user input to manipulate the game state Implement music and sound effects Export and distribute your final game Approach A simple guide, packed with tutorials that ease you into learning about the Slick game workflow and Slick game library. Who this book is written for If you are a game programmer who would like to expand on your skills and become a game developer, this book is ideal for you. No previous knowledge of Slick 2D or any other Java game library is required. This book assumes that you have basic Java syntax and object oriented programming knowledge. Book Details Paperback: 116 pages Publisher: Packt Publishing (October 2013) Language: English ISBN-10: 178328983X ISBN-13: 978-1783289837

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值