Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

terinchu

5
Posts
1
Topics
3
Following
A member registered Jun 15, 2020 · View creator page →

Creator of

Recent community posts

Can't vote, but I liked this. Good work!

Cringiest ending, but from ~10 games I've tried from the jam, this is the best. Kudos!!

Yep, balance sounds like a tricky thing.

I've just started with a small board game using dragonruby (senior ruby but completely newbie gamedev here), so I've started to deal with problems like that one.

Anyway, keep the good work there or any other future project.

Best

Cool game, I really enjoyed it.

BTW, moving up/down would make things more fun and easier to avoid homing missiles.

And some sort of Power-ups for shots would be great also.

Cheers

Just starting with dragonruby, I'm trying a file structure like this one:

app/main.rb
app/game.rb
app/components/board.rb
app/components/player.rb
app/components/solid.rb
app/components/sprite.rb
app/components/tile.rb

where my main.rb class is like:

require 'app/game.rb'
@game = Game.new
def tick(args) 
  @game.args = args 
  @game.tick
end

and game.rb class is:

require 'app/components/sprite.rb'
require 'app/components/solid.rb'
require 'app/components/player.rb'
require 'app/components/tile.rb'
class Game
  attr_gtk
  attr_accessor :tiles, :player
  def initialize
    @tiles = generate_tiles
    @player = Player.new(0, 0)
  end
  # more code...

Then when I start dragonruby ./ , the app fails with:

2020-07-07 22:42:24.264 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
2020-07-07 22:42:24.264 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
2020-07-07 22:42:24.264 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
2020-07-07 22:42:24.264 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
2020-07-07 22:42:24.264 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
2020-07-07 22:42:24.264 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
2020-07-07 22:42:24.311 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
2020-07-07 22:42:24.311 dragonruby[72992:170603] INFO: NameError: uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed.
* EXCEPTION:
uninitialized constant (class Game (included_modules [AttrGTK]) )::Tile
* ERROR: Invocation of Game.new failed. (0)
* INFO: Exported the current game state to file exceptions/game_state_-1.txt.
* INFO: Marked app/components/sprite.rb for reload. (57)
* INFO: Marked app/components/solid.rb for reload. (57)
* INFO: Marked app/components/player.rb for reload. (57)
* INFO: Marked app/components/tile.rb for reload. (57)

However, if I touch the main.rb class with a save, the console display:

* INFO: Marked app/main.rb for reload. (897)

then the game loads correctly.

What I'm missing here?