diff options
| author | realtradam <[email protected]> | 2024-06-17 11:07:15 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-06-17 11:07:15 -0400 |
| commit | 23a972d8dec43dec1dc472a90d4749223e4aac00 (patch) | |
| tree | 3ec62df7930e7095fd460eb4b4593334763575b5 /db | |
| parent | 0855fce7d1960ff7aa1402d60504ca38feb0ff7e (diff) | |
| download | gameHolster-23a972d8dec43dec1dc472a90d4749223e4aac00.tar.gz gameHolster-23a972d8dec43dec1dc472a90d4749223e4aac00.zip | |
update db initialization and bring back minor changes
Diffstat (limited to 'db')
17 files changed, 117 insertions, 0 deletions
diff --git a/db/lfs/Games/Bubbles, Behind/card.png b/db/lfs/Games/Bubbles, Behind/card.png Binary files differnew file mode 100644 index 0000000..4100514 --- /dev/null +++ b/db/lfs/Games/Bubbles, Behind/card.png diff --git a/db/lfs/Games/Bubbles, Behind/character.png b/db/lfs/Games/Bubbles, Behind/character.png Binary files differnew file mode 100644 index 0000000..b8661dd --- /dev/null +++ b/db/lfs/Games/Bubbles, Behind/character.png diff --git a/db/lfs/Games/Bubbles, Behind/index.zip b/db/lfs/Games/Bubbles, Behind/index.zip Binary files differnew file mode 100644 index 0000000..a18f881 --- /dev/null +++ b/db/lfs/Games/Bubbles, Behind/index.zip diff --git a/db/lfs/Games/Bubbles, Behind/title.png b/db/lfs/Games/Bubbles, Behind/title.png Binary files differnew file mode 100644 index 0000000..718918a --- /dev/null +++ b/db/lfs/Games/Bubbles, Behind/title.png diff --git a/db/lfs/Games/Magnet Run/card.png b/db/lfs/Games/Magnet Run/card.png Binary files differnew file mode 100644 index 0000000..5a942da --- /dev/null +++ b/db/lfs/Games/Magnet Run/card.png diff --git a/db/lfs/Games/Magnet Run/character.png b/db/lfs/Games/Magnet Run/character.png Binary files differnew file mode 100644 index 0000000..beb1fbe --- /dev/null +++ b/db/lfs/Games/Magnet Run/character.png diff --git a/db/lfs/Games/Magnet Run/index.zip b/db/lfs/Games/Magnet Run/index.zip Binary files differnew file mode 100644 index 0000000..1251e4d --- /dev/null +++ b/db/lfs/Games/Magnet Run/index.zip diff --git a/db/lfs/Games/Magnet Run/title.png b/db/lfs/Games/Magnet Run/title.png Binary files differnew file mode 100644 index 0000000..b272849 --- /dev/null +++ b/db/lfs/Games/Magnet Run/title.png diff --git a/db/lfs/Games/Optimal Direction/card.png b/db/lfs/Games/Optimal Direction/card.png Binary files differnew file mode 100644 index 0000000..ff6223f --- /dev/null +++ b/db/lfs/Games/Optimal Direction/card.png diff --git a/db/lfs/Games/Optimal Direction/character.png b/db/lfs/Games/Optimal Direction/character.png Binary files differnew file mode 100644 index 0000000..1fd4e20 --- /dev/null +++ b/db/lfs/Games/Optimal Direction/character.png diff --git a/db/lfs/Games/Optimal Direction/index.zip b/db/lfs/Games/Optimal Direction/index.zip Binary files differnew file mode 100644 index 0000000..4f169ec --- /dev/null +++ b/db/lfs/Games/Optimal Direction/index.zip diff --git a/db/lfs/Games/Optimal Direction/title.png b/db/lfs/Games/Optimal Direction/title.png Binary files differnew file mode 100644 index 0000000..d155fd7 --- /dev/null +++ b/db/lfs/Games/Optimal Direction/title.png diff --git a/db/lfs/Games/Orc: Arena of Time/card.png b/db/lfs/Games/Orc: Arena of Time/card.png Binary files differnew file mode 100644 index 0000000..c757a53 --- /dev/null +++ b/db/lfs/Games/Orc: Arena of Time/card.png diff --git a/db/lfs/Games/Orc: Arena of Time/character.png b/db/lfs/Games/Orc: Arena of Time/character.png Binary files differnew file mode 100644 index 0000000..2e46e51 --- /dev/null +++ b/db/lfs/Games/Orc: Arena of Time/character.png diff --git a/db/lfs/Games/Orc: Arena of Time/index.zip b/db/lfs/Games/Orc: Arena of Time/index.zip Binary files differnew file mode 100644 index 0000000..b29fb85 --- /dev/null +++ b/db/lfs/Games/Orc: Arena of Time/index.zip diff --git a/db/lfs/Games/Orc: Arena of Time/title.png b/db/lfs/Games/Orc: Arena of Time/title.png Binary files differnew file mode 100644 index 0000000..311fdb4 --- /dev/null +++ b/db/lfs/Games/Orc: Arena of Time/title.png diff --git a/db/seeds.rb b/db/seeds.rb index 83840d6..3c76d2b 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -8,6 +8,65 @@ # MovieGenre.find_or_create_by!(name: genre_name) # end +markdown_sample = <<~HEREDOC +# Telum vim lactente + +## Petebam Circe hic mactare vitae tandem super + +Lorem markdownum Perseu tetigisse instar. Negat inde calidi sibi, in ora +sanguine; vox excitus pes, in in tibi mella! Portasse morte hic venit, latebras +varios servire libera; hic ad augusta forcipe, *illis* est ubi atque. + +Veri inquit pondere. Precatur ego Amymonen quae vidit lunares caput, nequeo, et. +Occidat in nosset pressa, nomine exercita penitus viae gaudent extemplo. +Mensuraque imitamine primum: sine est suas, quo in, est falso est accingere +ibimus ore renuente. Trahit sua nulla per ut vestigia celerique, gemit manes, +quo suae. + +``` +if (graphic_veronica_traceroute + scanRdram < bittorrent_dtd + + bugWindowsOrientation) { + pitchWord = dllTrackbackRemote; + jquery.batchDot.megabyte(cookie - public, memoryDslamSlashdot(2, + socialPpcEncryption)); +} +cron_analyst = ddr_zettabyte_mips; +var digitize = 1; +var friend_gui = artificial.system(alphaWebsite + domain_ibm( + install_ospf_definition, mca_camelcase, 4), 551649, active_trinitron( + microcomputer_spoofing)); +``` + +Ungues in cannae limumque ingrate; in una voce cubitoque fecit. Non nec, uno +vires laesit perque carpere vultus armenta. Via [praetulit clipei +vestis](http://antro.net/) vidit, sive vestes invitas pro ad per nato nam beati. + +## Nec hauriret stantis + +Illa serpentem fugit inlaesas, cum spoliis vultum arbitrium penates fulmina +caelestia moriens videt insidias. Umidus positi, et ripis feremur sit capit +detur tenens. + +- Provolat cum ecce dextro sed suum pomi +- Voce falsa habuit te +- Modo deponere bracchia pectus + +Deus canor incurva usu dolisque tuentes, leto Liber iniquae requies declivis ad +fontibus tali, flagratque aquaticus. Rupit stimuloque, conscia, nimiumque ait +nomen est Libycas, undas. + +> Humumque spectata et vera, **rugosis causam** iaculo sacra, iunctas rege +> triplices contrahit. Potenti unum cava fama genitor testata summa. Comae sit +> cum, dignissima tauri, formatus promissis *in* quoque [quem +> candidaque](http://sulcomaxima.net/), vitalesque? Pro edere rescindere, premit +> mortisque celeri egredior mare pater, una. Arva tu annos fila valles nocte, +> sero deum densetur **soror siccatque Aeacide** certe undique discordia latent +> et. + +Mihi aureus. Eque tuo, illam diris, virgineas erit externis stabula saetae datis +videat vultus depositae nymphas pedum non peto quem. +HEREDOC + platform_tags = [ "web", "desktop", @@ -27,3 +86,61 @@ game_tags = [ game_tags.each do |tag| Tag.find_or_create_by!(name: tag, tag_type: "game") end + +User.create({ user_name: "realtradam", identifier: "11139432"}) +user = User.first + +data_dir = Rails.root.join('db/lfs') + +games = [ + { + title: 'Orc: Arena of Time', + description: markdown_sample, + github_link: 'https://github.com/realtradam/orc-arena-of-time', + img_rendering: 'pixelated', + tags: ["web", "desktop"] + }, + { + title: 'Bubbles, Behind', + description: markdown_sample, + github_link: 'https://github.com/realtradam/TOJam2023', + img_rendering: 'crisp-edges', + tags: ["web", "desktop"] + }, + { + title: 'Magnet Run', + description: markdown_sample, + github_link: 'https://github.com/realtradam/Magnet-Run-3D', + img_rendering: 'crisp-edges', + tags: ["web", "desktop"] + }, + { + title: 'Optimal Direction', + description: markdown_sample, + github_link: 'https://github.com/realtradam/optimal-direction', + img_rendering: 'crisp-edges', + tags: ["web", "desktop"] + }, +] + +games.each do |game| + next if Game.exists(title: game[:title], user_id: 0) # first user is always me + tags = game[:tags] + game.delete(:tags) + game_obj = user.games.new(game) + game_obj.save_zip("#{data_dir}/Games/#{game[:title]}/index.zip") + game_obj.card_img.attach(io: File.open("#{data_dir}/Games/#{game[:title]}/card.png"), filename: 'card.png') + game_obj.char_img.attach(io: File.open("#{data_dir}/Games/#{game[:title]}/character.png"), filename: 'character.png') + game_obj.title_img.attach(io: File.open("#{data_dir}/Games/#{game[:title]}/title.png"), filename: 'title.png') + game_obj.titleSlug = game[:title].parameterize + game_obj.status = 1 + + tags.each do |tag| + tag_obj = Tag.find_by(tag_type: "platform", name: tag) + if tag_obj + game_obj.tags << tag_obj + end + end + + game_obj.save +end |
