Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Ryan1729

3
Posts
1
Topics
1
Followers
1
Following
A member registered Mar 24, 2016 · View creator page →

Creator of

Recent community posts

Hi! I just started digging into Dragonruby. I'm really liking the straightforwardness of the API so far.

The first thing I wanted to do was try out some simple spritesheet-based animation. So I had a look in mygame/documentation/05-sprites.md  and found the "Sprite Sub Division / Tile" example there. But when I tried it out, with my own spritesheet, nothing got rendered to the screen. After some experimentation I found that if I don't set source_h, or I set it to `-1` like other parts of the docs suggest, then I get the all the way to the bottom edge of the image rendered, as expected. But then If I set it to a positive number like 32  then the image does not show up at all.


Here's a small code example that demonstrates the issue for me:

def tick args
  args.outputs.sprites << {
    x: 100,
    y: 100,
    w: 100,
    h: 100,
    path: "dragonruby.png",
    source_x: 0,
    source_y: 0,
    source_w: 32,
    source_h: 32
  }
end

As is, this shows a blank screen, but if I remove the source_h line, then I see part of the dragonruby logo as expected.

To all the people saying it gets hard after a while: Build a wide raft one section thick, and don't bother buying sails for a while. When the wind changes just start building wide in the new direction.

Neat. It took a little while to understand what to do, but I got there eventually. I guess I completed it since I got to a level that after I beat it returns me to the same level, (the one where you need a chicken burger then some number of fish or beef burgers.)