<commit_before>require 'dokidoki.module' [[]]

local kernel = require 'dokidoki.kernel'
local game = require 'dokidoki.game'
local v2 = require 'dokidoki.v2'

local blueprints = require 'blueprints'

kernel.set_video_mode(1024, 768)
kernel.start_main_loop(game.make_game(
  {'update_setup', 'update', 'collision_registry', 'collision_check',
   'update_cleanup'},
  {'draw_setup', 'draw'},
  function (game)
    game.init_component('exit_handler')
    game.init_component('keyboard')
    game.init_component('opengl_2d')
    game.opengl_2d.width = 1024
    game.opengl_2d.height = 768

    game.init_component('constants')
    game.init_component('collision')
    game.init_component('resources')
    game.init_component('targeting')
    game.init_component('tracing')

    game.actors.new(blueprints.background,
      {'transform', pos=v2(0, 0)})
    game.actors.new(blueprints.easy_enemy_factory,
      {'transform', pos=v2(200, 200)},
      {'ship', player=1})
    game.actors.new(blueprints.easy_enemy_factory,
      {'transform', pos=v2(800, 200), facing=v2(-1, 0)},
      {'ship', player=2})
    game.actors.new(blueprints.easy_enemy_factory,
      {'transform', pos=v2(200, 600)},
      {'ship', player=3})
    game.actors.new(blueprints.easy_enemy_factory,
      {'transform', pos=v2(800, 600), facing=v2(-1, 0)},
      {'ship', player=4})      
  end))<commit_msg>Only 2 ships by default, for development.<commit_after>require 'dokidoki.module' [[]]

local kernel = require 'dokidoki.kernel'
local game = require 'dokidoki.game'
local v2 = require 'dokidoki.v2'

local blueprints = require 'blueprints'

kernel.set_video_mode(1024, 768)
kernel.start_main_loop(game.make_game(
  {'update_setup', 'update', 'collision_registry', 'collision_check',
   'update_cleanup'},
  {'draw_setup', 'draw'},
  function (game)
    game.init_component('exit_handler')
    game.init_component('keyboard')
    game.init_component('opengl_2d')
    game.opengl_2d.width = 1024
    game.opengl_2d.height = 768

    game.init_component('constants')
    game.init_component('collision')
    game.init_component('resources')
    game.init_component('targeting')
    game.init_component('tracing')

    game.actors.new(blueprints.background,
      {'transform', pos=v2(0, 0)})
    game.actors.new(blueprints.easy_enemy_factory,
      {'transform', pos=v2(500, 200)},
      {'ship', player=1})
    game.actors.new(blueprints.easy_enemy_factory,
      {'transform', pos=v2(500, 600), facing=v2(-1, 0)},
      {'ship', player=2})    
  end))
{'fraction_non_alphanumeric': 0.1578112609040444, 'fraction_numerical': 0.040444091990483745, 'mean_word_length': 4.496732026143791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1604659', 'n_tokens_mistral': 959, 'n_tokens_neox': 878, 'n_words': 141}