Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, xplat, tiny, hot loaded. · By DragonRuby

gtk_args macro

A topic by Mozolog created 18 days ago Views: 30 Replies: 1
Viewing posts 1 to 2
(1 edit)

Probably someone has already noticed this but I gave the gtk_args macro a try and noticed it's missing the inputs tag.  To get it to work I needed to do this:

class Dungeon
  gtk_args
  attr_accessor :inputs
  ...
end
$dungeon = Dungeon.new
def tick args
  $dungeon.args = args
  $dungeon.inputs = args.inputs
  $dungeon.tick
end
Developer

Noted. I'll make sure that's fixed in the next release.