TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hands-On Rust: Effective Learning Through 2D Game Development and Play

299 pointsby nalleroothover 3 years ago

12 comments

halvnykteristover 3 years ago
I can&#x27;t help but be heavily skeptical of approaches to a (traditional) roguelike that use ECS. The idea is very entrenched in the rust gamedev community, but for a turn based tile based game there&#x27;s extremely little benefit and a lot of added complexity. Bob Nystrom has an excellent talk on roguelike architecture [0] and rust as a language itself doesn&#x27;t prevent any of these approaches. If anything, the existence of sum types as enums make many of them all the more powerful.<p>[0]: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=JxI3Eu5DPwE" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=JxI3Eu5DPwE</a>
评论 #28863634 未加载
评论 #28863079 未加载
评论 #28862975 未加载
评论 #28866732 未加载
评论 #28866694 未加载
评论 #28865957 未加载
评论 #28866359 未加载
评论 #28863009 未加载
评论 #28863985 未加载
评论 #28863878 未加载
评论 #28869296 未加载
评论 #28866228 未加载
评论 #28868427 未加载
uDontKnowMeover 3 years ago
Consistently interesting content coming out of Pragmatic Bookshelf publishers these days. Recently, I have particularly enjoyed the Ray Tracer Challenge (<a href="https:&#x2F;&#x2F;pragprog.com&#x2F;titles&#x2F;jbtracer&#x2F;the-ray-tracer-challenge&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pragprog.com&#x2F;titles&#x2F;jbtracer&#x2F;the-ray-tracer-challeng...</a>) and Web Development in Clojure (<a href="https:&#x2F;&#x2F;pragprog.com&#x2F;titles&#x2F;dswdcloj3&#x2F;web-development-with-clojure-third-edition&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pragprog.com&#x2F;titles&#x2F;dswdcloj3&#x2F;web-development-with-c...</a>)
dudulover 3 years ago
I started reading this book a few months ago. It is pretty good, I really like learning while working on a &quot;sort of real world&quot; project.<p>However, being completely new to Rust I find that the author doesn&#x27;t spend enough time discussing the language, it&#x27;s syntax and nuances. It is hard to talk both about rust alongside video game design techniques.<p>I put it down after reading 1&#x2F;4th of it. I&#x27;m planning to spend some time on a book that focuses on the language first and then get back to it ;)
评论 #28869227 未加载
dopuover 3 years ago
Looks pretty good! I will say, as someone who programs in their day job and has been trying for ages to get into game dev as a hobby, love2d [0] has been excellent for getting started. My github has a few repos of previous attempts at making simple games (in .cpp, .rs, etc) which I abandoned from the amount of work it took.<p>If you&#x27;re in a similar boat, I would recommend checking the framework out. Lua&#x27;s a pleasure to program in and you can focus on the game development itself instead of getting bogged down in the details of rust &#x2F; cpp. In fact I&#x27;ve been thinking lately about how easy it would be to use it for things other than games -- quick prototyping of graphical simulations, psychophysics experiments, etc.<p>[0]: <a href="https:&#x2F;&#x2F;love2d.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;love2d.org&#x2F;</a>
greenailover 3 years ago
I don&#x27;t think most non-rust programmers know what ECS is.<p>ECS is a pattern to manage composable logic and shared behavior. very very loosely like splitting logic in to class level and object level.
评论 #28865745 未加载
Zolomonover 3 years ago
I worked through this book a couple of weeks ago and I had a blast. I heartily recommend it to roguelike fans that haven’t tried out participating in the 7DRL game jam yet.
Camasover 3 years ago
Book is also online: <a href="https:&#x2F;&#x2F;bfnightly.bracketproductions.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bfnightly.bracketproductions.com&#x2F;</a><p>and on Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;amethyst&#x2F;rustrogueliketutorial" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;amethyst&#x2F;rustrogueliketutorial</a>
评论 #28863781 未加载
ttymckover 3 years ago
It is a very good learning guide. Keep in mind I am someone who negotiates the borrow checker by adding-and-removing *&#x2F;&amp;&#x2F;to_owned() rather haphazardly.<p>I found it especially satisfying to port the game from racketlib&#x2F;rltk to bevy afterwards.
评论 #28869538 未加载
myth_drannonover 3 years ago
It&#x27;s a great book but I struggled with an additional overhead of ECS library usage. Don&#x27;t know if it would have been better just roll out it&#x27;s own simple logic for ECS , but then it would probably double the length of the book.
评论 #28864064 未加载
igh4stover 3 years ago
The book sounds awesome to get your hands dirty with Rust :)<p>is there a promo code for Latin-american countries?
评论 #28865306 未加载
评论 #28871151 未加载
vjustover 3 years ago
His explanations seem very clear and simple, I&#x27;d dig into it, just to get a better understanding of rust, and the game dev part also seems do-able, unlike other authors where they dive into some complex pieces causing frustration to the learner.
ciusover 3 years ago
I recently finished this book and highly recommend it. Very fun stuff, a decent introduction to rust, and does a great job of setting the reader up for exploring further. Kudos to Mr. Wolverson.