11 ms·
How to Make an RPG
- catwell 10y agotl;dr This is a book about how to make a 2D JRPG in Lua (with a C++ engine). The source code of the engine and the art assets ship with the book.
- justinclift 10y agoWhat's the licensing on those? The project site itself mentions the underlying graphics engine is an Open Source one, but doesn't seem to have info on the licensing for the art/sound assets.
- juice_bus 10y agoThere is a bullet point for the pixel art: * Over $2500 worth of pixel art (free to use however you like) But I don't see any concrete licensing statements for the art assets besides that.
- deleted 10y ago[deleted]
- dlitvakb 10y agoThe site says that there's over $2500 in assets that come bundled with a permissive license
- alphonsegaston 10y agoI was an early supporter (bought the book in pre-release), but the lack of explicit licensing info on the engine and assets has cooled my interest. Hope this gets addressed.
- supergreg 10y agoThe engine seems to be MIT licensed: https://github.com/dinodeck/dinodeck/blob/master/LICENSE https://github.com/dinodeck/dinodeck/blob/master/LICENSE
- pmichaud 10y agoIt says on the page that the assets are custom for the project and have a liberal license, but it doesn't say what the license is in the spot I was reading--I assume MIT.
- justinclift 10y agoHmmmm, assuming anything about licensing kind of makes me nervous. :) Just emailed the author, to ask directly. Will post the response back here (when received) for reference.
- justinclift 10y agoYep MIT. Email response from the author: > Hi Justin, > > I want people to be able to use the art however they deem best so the MIT license is the one I've chosen. Though I don't think I've written this anywhere - which I should address! > > -Dan
- lisivka 10y agoWhy not just clone Pixel Dungeon repo?
- cced 10y ago> RPG Yes, yes of course they mean game.
- deleted 10y ago[deleted]
- myth_drannon 10y agoAnyone can suggest similar books/tutorials with Javascript?
- baldfat 10y agoPhaser.io has a bunch of javascript resources and books.
- bearble 10y agoWhile I really enjoyed Phaser, which in turn made me love TypeScript. I had some serious issues with performance and trying to maintain 60 frames per second in any 16:9 resolution. I've been looking into C++ and Java solutions and this book might be the perfect fit.
- keyle 10y agoI recommend looking at Love2d. It's fantastic.
- khalilravanna 10y agoI had the same issues myself until I ended up dropping Phaser and using Pixijs (the rendering code used by Phaser) on its own and then writing a bit of code to only render the game in chunks. It seems like by default Pixijs (and this may have changed since I wrote my code) renders the whole scene no matter how large it is. Since I'm working on dwarf fortress type game, the game world has a lot going on and it crushed my game's performance and brought it to a halt. Since writing that chunking code I haven't had any performance problems that weren't my own doing. tl;dr I would recommend checking out Pixijs on its own if you still want to use TypeScript (I recently converted my code from es6 to TypeScript a month or two ago and am in love love love).
- roel_v 10y agoWhat are some good current RPG's, in the style of the original Zelda, for PC or mobile today? All I can find is free-to-play.
- Figs 10y agoNot sure if this is what you're looking for exactly, but Trails in the Sky is pretty good. It's on GOG for PC. It has one of the most detailed worlds I've ever seen in an RPG -- almost every NPC has a name and updates dialogue after every event. Can personally confirm that it works pretty well with WINE on Linux (even got my xbox360 controller to work using xboxdrv in xpad mode, shockingly) -- just the intro movies won't play, but other than that it works great.
- J_Darnley 10y agoYes, Trails is very good (and Second Chapter is even better) but it is nothing like any Zelda game I have ever played. More like a Final Fantasy game with turn-based, tactical battles which are separated from the overworld. (On your specific video problem: Trails uses DirectShow to play the videos so make sure your Wine setup can play them) To the GP: Recettear has combat like the older Zelda games (with a simplistic shop management sim tacked on. I think the Ys series also has combat somewhat like Zelda. Perhaps Diablo clones might interest you. Which bit of Zelda are you looking for?
- chii 10y agotry http://www.heart-machine.com/ http://www.heart-machine.com/ - i heard good things about it (not played it yet, but the trailer/screenshots looks good!).
- yolesaber 10y agoI think it's the best game of 2016 so far.
- glaze 10y agoOceanhorn is very Zelda-like, originally made for iOS but later ported to many other platforms. It got great reviews and is not free-to-play.
- supergreg 10y agoHow different is the C++ engine to love2d? Does it just do enough to let you draw in the screen with lua or does it implement anything more specific for an RPG?
- keyle 10y agoI doubt that his engine has a third of Love2D's capability. gamepad, audio, etc.
- dkersten 10y agoI don't know anything about this engine, but I've tinkered with stuff myself and gamepads, audio etc are all pretty easy to implement. Eg SDL2 has a very easy to use gamepad interface that's similar to XInput (pretends your gamepad is an Xbox controller). I've used SDL_mixer and FMOD in the past for audio and both are really really simple to get going. My point is that, yes Love2D has been in development for longer and does likely have more capability, but that doesn't mean that this is lagging behind thaaaaat much, certainly not in the areas you mentioned. It might do, but not necessarily. Also, I assume this has more RPG-specific functionality baked in that you'd have to do by yourself in Love2D.
- tmaly 10y agowow I have not had my coffee yet. I was thinking you mean rocket propelled grenade
- dcuthbertson 10y agoI wonder how it compares with Handmade Hero https://handmadehero.org/ https://handmadehero.org/
- keyle 10y agoWell, just watch the sheer amount of videos of handmadehero and I don't think he's finished. I'd consider the book if I were you. It's ridiculous https://www.youtube.com/user/handmadeheroarchive/videos https://www.youtube.com/user/handmadeheroarchive/videos
- dcuthbertson 10y agoCertainly following all those videos is an inefficient way to learn. As smoyer said, it's more about the craft of coding, so maybe I made an apples/oranges comparison. Does anyone know about the depth and structure of the code in "How to Make an RPG"? From the post, it looks like it is focusing specifically on gameplay issues. Handmade Hero is covering quite a range of topics from basic gamepad input and audio output (done early in the series) on up. It is structured so that it's relatively easy to port to non-Windows OS's, and I like the live-coding feature which really shortens the code-compile-test cycle. I guess it would be nice to see the table of contents and maybe a sample chapter or excerpts.
- mw6621 10y agoThere is a table of contents at the bottom of this page: https://howtomakeanrpg.com/ https://howtomakeanrpg.com/ I bought the book. Haven't read it yet but the PDF is 978 pages and the downloads of source/assets was approx. 2GB. Roughly glancing through the book, there seems to be code examples on most pages. Looks like he's using LUA.
- jere 10y agoYea... Handmade Hero is a very awesome idea, but I can't imagine the amount of dedication it would take for someone to sit down one day and decide to watch all 300+ videos. It's like an order of magnitude more content than a college course already and it's clearly far from finished.
- bshimmin 10y agoAh, so many happy memories of playing Shining Force...
- Taylor_OD 10y agoI have bought Shining Force on so many platforms. It seems like there is a great port out for every phone or gaming system you can think of.
- automathematics 10y agoSame. I have the complete collection now from 8bit to PS3. Such a great game. I hope to create a 2d engine in that style next (in javascript because I'm a crazy mofo)
- Tepix 10y agoIf you just want to make a RPG and don't care about the programming part, you could just use RPG Maker instead...
- koonsolo 10y agoShameless plug: or http://rpgplayground.com http://rpgplayground.com :)! Remark that this is far from finished, but people are already making some fun stuff with it. Any feedback is welcome.
- Navarr 10y agoHonestly the screenshots and assets all look like they're ripped from RPGMaker..
- rafaquintanilha 10y agoI "learned" to code with RPG Maker when I was 12. So much nostalgy in here right now.
- Robin_f 10y agoThere are spelling mistakes on that page. That does not bode well for the book.
- shrugger 10y agoThen don't read it. In several years you've made only a couple negative, snarky comments on HN. If a guy writes an entire book and you don't want to read it because he made a spelling mistake, then don't.
- claystu 10y agoI disagree. The presence of several typos on the main page is a big red flag for a technical book. Having said that, I'm still interested, but the lack of proofreading on the author's release announcement for his book is definitely counterproductive.
- MollyR 10y agoThis is interesting for 2d rpgs, Does anyone know of something similar for a 3d/VR compatible version ?
- NicoSantangelo 10y agoInteresting, I've always wanted to make a game but never found the time, now I'm torn between learning Lua or just sticking to the web and try to do something there instead. Nitpick, there's a little typo: "Hello World exmaple for Mac"
- vvanders 10y agoI highly recommend giving Lua a try, it's a simple yet powerful little language(metatables, coroutines!) that embeds incredibly easily and has great performance. Way back on the PSP we use to run our whole game logic with Lua in a 400kb pre-allocated block. You only had 8mb of system ram since 24mb went to texture/audio and it really worked great. Coroutines are also a perfect fit for try-wait-try logic you get in a lot of AI routines.
- mikegedelman 10y agoThis looks really cool, I just wish there were a sample chapter... I'd want to look at some sample code to see what kind of stuff I'd be getting into before I made such a time commitment.
- Keyframe 10y agoYeah, this would benefit from a sample chapter.
- peterashford 10y agoAgreed. The contents look very helpful but a sample would give more confidence about the quality of writing and information provided.
- davexunit 10y agoThere are a couple of articles I really enjoy on the blog section of the site. http://howtomakeanrpg.com/a/sine-of-the-times.html http://howtomakeanrpg.com/a/sine-of-the-times.html http://howtomakeanrpg.com/a/the-power-of-one.html http://howtomakeanrpg.com/a/the-power-of-one.html
- exolymph 10y agoThis person is waaaayyyyy undercharging. Should be $100 or maybe even more.
- jaberwocky 10y agoAgreed. It is worth a couple hundred bucks IMO. I bought it and it is very good.
- alanfalcon 10y agoI love that you wrote your own engine (and your rationale for doing so) and that you used Lua! This looks like a very fun resource and something I'll be pointing aspiring RPG makers to all the time (perhaps in leiu of my standard "you have no idea what you're getting into, drop the idea and start something much much smaller" spiel).
- dylanz 10y agoMy first memory as a kid playing a "Japanese" style RPG was Final Fantasy. Is this what the author was referring to, or was there a game like this that preceded that?
- knodi123 10y agoI mean, Dragon Quest is basically 1 year older, but I bet they were both in development at the same time. I don't know of anything older than that with the top-down turn-based approach with overworlds, battle screens, inventory, etc.
- Narishma 10y agoNothing Japanese, but there were western games before that had major influence on DQ and FF, most notably Ultima and Wizardry.
- whitten 10y agois there anything inherent in the Lua Language that makes it a good match for an in-game-engine programming language?
- careersuicide 10y agoNot so much in the language itself (I'm not a fan), but the process of embedding Lua and pushing data into a Lua context and pulling data out of a Lua context is so simple the first time I got it working I thought, "Surely I'm missing something, it can't be this easy." The ease of integration with C or C++ makes it worth strongly considering when you need an embedded scripting language. But, as I alluded to, Lua as a language is pretty awful. Lua's tables are an abomination in my eyes. A few years ago I started a simple RPG game engine that uses Lua[0] as its scripting language. I never got very far with it but considering I had zero clue how to even begin approaching the problem when I started I'm pretty happy with how far I got before I lost interest. [0]: https://github.com/seaneshbaugh/SDL03 https://github.com/seaneshbaugh/SDL03
- ufo 10y agoWhat do you think is so bad about Lua tables? They have some unintuitive aspects (such as not being able to store `nil`) but in the end being able to use tables for everything considerably simplifies the language. I'd hardly consider that an abomination.
- danbolt 10y agoPersonally, I think Lua's widespread use in game programming stems from it's performant design, paradigm flexibility, and the fact that it's not hard to embed into an existing project. There are other languages that have this mindset too, but I think Lua's been able to capture enough mindshare to be quite sticky in the industry. I've met quite a few game programmers that don't like parts of Lua, and wish there was something that was closer to C++ rather than JavaScript.
- abhorrence 10y agoHave you seen Squirrel? [0] It does have a lot in common with Lua, but does have a bit more of a C++ feel to it. [0] http://www.squirrel-lang.org/ http://www.squirrel-lang.org/
- kybernetyk 10y agoAbout the dinodeck_mac hello world: You have to fix your linker settings. > dyld: Library not loaded: @rpath/libopenal.1.dylib > Referenced from: /Users/kyb/Downloads/hello_world_mac/./dinodeck_mac > Reason: image not found
- jtokoph 10y agoI'm wondering if that was part of the test. To make sure people who start could get this working. Tip: Copy the dylib to /usr/local/lib/libopenal.1.dylib
- geggam 10y agodammit... came for RPG ( Rocket Propelled Grenade ) got RPG ( Role Playing Game ) left disappointed
- robohamburger 10y agoIt would be cool if there were resources for just doing the systems and encounter design. Most of graphics and engine programming seems easy enough (just time consuming) and there are plenty of existing engines. Always wonder how RPGs or or games like civ get balanced and designed. I assume some of it is iterative but that requires at least starting out with something reasonable right? Might pick this book up if it touches on that :)
- bithive123 10y agoI want to buy this book because it seems perfect for a Love2d project I've been working on. BTW clicking the "Buy Now" button is sort of jarring in that you first see some text that starts with "Warning" which gets replaced by a credit card dialog after a second or so.
- RIMR 10y agoRisky Click. I figured I was either about to learn something about gaming, or I was about to end up on a terrorism watch list...
- chii 10y agoThere should be nothing wrong with learning how to make a rocket propelled grenade. Knowledge is knowledge, it's only bad when used nefariously.
- RIMR 10y agoWell, I know how to make a grenade, and I know how to make a rocket. I guess it's not that bad to know how to combine those things.
- supercoder 10y agoYou're definitely on the list now.
- peterkshultz 10y agoChances are you learned something about gaming AND ended up on a terrorism watch list.
- geonic 10y ago> Over $2500 worth of pixel art (free to use however you like) I think this sounds kinda fishy. Why isn't it sold for 2500 USD if it's supposed to be worth so much? I guess there are way too many scam sites trying to sell me something at a great discount that I can't help but feel this way. I'd change this line to something like "over 1000 pixel art graphics free to use however you like".
- Retra 10y agoIt's only worth that much to create, not to use.
- coltonv 10y agoBecause If someone contracted them to make these assets they would have charged that person $2500. But here they sell it to you much cheaper in hopes That enough people will buy the book thus making more that the 2500 they could have made.
- jaberwocky 10y agoBought it, went through 1/2 of it in a day, think it is really good. Informative watching the author's design choices and refactoring of the code base as he added new features and builds up the game from "hello world" to pretty full featured. I am a professional programmer and in my opinion this would be tough to understand for someone who wasn't already an experienced programmer, but I've never used Lua or coded games before.