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

"require" not working

A topic by AIVsmash created Nov 15, 2020 Views: 425 Replies: 2
This topic is archived. It is unlisted and no new posts can be made.
Viewing posts 1 to 4

Hi there,

I am running into a problem where DragonRuby will claim I have an uninitialized constant. The constant in question is actually a class that is defined in a separate file and then required. When I reload DragonRuby (perhaps by saving main.rb) the code functions just fine, but on first launch it appears to load the required files only after running into an error. Can anyone help with this? Thanks in advance.

Developer

Mind coming to the Discord?

Developer

Latest release should significantly improve require.

Developer archived this topic