Slick2D 开发环境搭建及基础知识

本教程指导您如何下载并整合Slick2D和LWJGL游戏开发组件,包括添加依赖项、设置VMOptions及测试开发环境。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1,需要分别下载 Slick2D(12.8MB) 和 LWJGL(5.8MB) 两部分组件。

2,  把下载的文件中 slick/lib 中的 slick.jar ,以及 lwjgl-x.x.x/jar 目录下的全部 jar 文件全部添加到 IDE 即可。

3  设置 VM Options,这一步是要告诉LWJGL它的native 文件在操作系统哪里,首先,右击jwjgl.jar旁边的箭头打开它,然后点击"native library location",然后编辑,输入native文件夹所在的目录

4  为了测试开发环境是否搭建正确,可以用一个简单的 Hello, World 级程序测试一下。



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、付费专栏及课程。

余额充值