Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

gtk_args macro

A topic by Mozolog created Aug 02, 2019 Views: 210 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.