Compare commits

..

No commits in common. 'master' and 'version-0.2' have entirely different histories.

  1. 1
      .gitignore
  2. 2
      .vimrc_proj
  3. 26
      Makefile
  4. 146
      README.md
  5. 1
      ai.hpp
  6. 10
      ai_debug.cpp
  7. 0
      amt/main.cpp
  8. 0
      amt/matrix.hpp
  9. 0
      amt/pixel.hpp
  10. 1
      amt/raycaster.cpp
  11. 0
      amt/raycaster.hpp
  12. 0
      amt/texture.cpp
  13. 0
      amt/texture.hpp
  14. 0
      amt/thread.hpp
  15. 20
      assets/ai.json
  16. BIN
      assets/armored_knight_1-256.png
  17. BIN
      assets/armored_knight_1-512.png
  18. BIN
      assets/axe_ranger-256.png
  19. BIN
      assets/blood_splatter-256.png
  20. BIN
      assets/ceiling_test-256.png
  21. BIN
      assets/ceiling_test-512.png
  22. BIN
      assets/ceiling_worm-256.png
  23. BIN
      assets/cinqueda_1-256.png
  24. BIN
      assets/cinqueda_1-512.png
  25. 303
      assets/config.json
  26. 82
      assets/devices.json
  27. 0
      assets/devils_fingers_background.jpg
  28. 0
      assets/devils_fingers_sprite.png
  29. 0
      assets/devils_fingers_stage.png
  30. 0
      assets/down_the_well.jpg
  31. 49
      assets/enemies.json
  32. BIN
      assets/evil_eye-sprites.png
  33. BIN
      assets/evil_eye_test-256.png
  34. BIN
      assets/evil_eye_test-512.png
  35. BIN
      assets/floor_tile_test-256.png
  36. BIN
      assets/floor_tile_test-512.png
  37. 0
      assets/full_screen_paper.png
  38. BIN
      assets/gold_savior-256.png
  39. BIN
      assets/grave_stone-256.png
  40. BIN
      assets/hairy_spider-256.png
  41. BIN
      assets/hanging_brazier-256.png
  42. BIN
      assets/healing_potion_small-256.png
  43. 12
      assets/icons.json
  44. BIN
      assets/icons/healing_potion_small.png
  45. BIN
      assets/icons/torch_horizontal_floor.png
  46. 68
      assets/items.json
  47. BIN
      assets/items/broken_locket.png
  48. BIN
      assets/items/broken_pen_knife.png
  49. BIN
      assets/items/broken_yoyo.png
  50. BIN
      assets/items/chess_pawn.png
  51. BIN
      assets/items/cinqueda.png
  52. BIN
      assets/items/dirty_kerchief.png
  53. BIN
      assets/items/dubious_combination.png
  54. BIN
      assets/items/healing_postion_small.png
  55. BIN
      assets/items/healing_potion_small.png
  56. BIN
      assets/items/leather_pouch.png
  57. BIN
      assets/items/mushroom.png
  58. BIN
      assets/items/pocket_watch.png
  59. BIN
      assets/items/rusty_nails.png
  60. BIN
      assets/items/severed_finger.png
  61. BIN
      assets/items/stone_doll_cursed.png
  62. BIN
      assets/items/torch_crappy.png
  63. BIN
      assets/items/torch_horizontal_floor.png
  64. BIN
      assets/items/wood_barrel_small.png
  65. 140
      assets/map_tiles.json
  66. BIN
      assets/map_tiles.png
  67. 81
      assets/palette.json
  68. BIN
      assets/paper_ui_background.png
  69. BIN
      assets/rat-king-boss-fight-test-small.jpg
  70. BIN
      assets/rat_king-256.png
  71. 0
      assets/rat_king_2_frame_animation.png
  72. 0
      assets/rat_king_boss_fight_background.jpg
  73. 0
      assets/rat_king_boss_fight_sprite.png
  74. BIN
      assets/rat_with_sword-256.png
  75. 0
      assets/ritual_crafting_area.png
  76. 29
      assets/rituals.json
  77. BIN
      assets/rituals/dubious_combination-128.png
  78. BIN
      assets/rituals/dubious_combination-64.png
  79. BIN
      assets/rope_vines_up-256.png
  80. 6
      assets/shaders/flame_trash.frag
  81. 4
      assets/shaders/lightning_attack.frag
  82. BIN
      assets/sounds/fireball_01.ogg
  83. BIN
      assets/sounds/hp_status_00.ogg
  84. BIN
      assets/sounds/hp_status_10.ogg
  85. BIN
      assets/sounds/hp_status_30.ogg
  86. BIN
      assets/sounds/hp_status_60.ogg
  87. BIN
      assets/sounds/hp_status_80.ogg
  88. BIN
      assets/sprites/armored_knight_1.png
  89. BIN
      assets/sprites/axe_ranger.png
  90. BIN
      assets/sprites/dead_body.png
  91. BIN
      assets/sprites/dead_body_lootable.png
  92. BIN
      assets/sprites/gold_savior.png
  93. BIN
      assets/sprites/grave_stone.png
  94. BIN
      assets/sprites/hairy_spider.png
  95. BIN
      assets/sprites/peasant_girl_2.png
  96. BIN
      assets/sprites/rat_with_sword.png
  97. BIN
      assets/sprites/rope_vines_up.png
  98. BIN
      assets/sprites/torch_pillar.png
  99. BIN
      assets/sprites/tripwire_trap.png
  100. BIN
      assets/sprites/undead_peasant.png
  101. Some files were not shown because too many files have changed in this diff Show More

1
.gitignore vendored

@ -27,5 +27,4 @@ backup
*.dll
*.world
coverage
coverage/*
.venv

@ -1 +1 @@
set makeprg=make\ -f\ ../Makefile\ build
set makeprg=meson\ compile\ -C\ .

@ -1,5 +1,3 @@
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
all: build test
reset:
@ -10,19 +8,10 @@ else
endif
%.cpp : %.rl
ragel -I $(ROOT_DIR) -G1 -o $@ $<
%.dot: %.rl
ragel -Vp -I $(ROOT_DIR) -o $@ $<
%.png: %.dot
dot -Tpng $< -o $@
ragel -o $@ $<
build:
meson compile -j 10 -C $(ROOT_DIR)/builddir
asset_build: build
./builddir/icongen
build: lel_parser.cpp
meson compile -j 10 -C builddir
release_build:
meson --wipe builddir -Db_ndebug=true --buildtype release
@ -36,8 +25,8 @@ tracy_build:
meson setup --wipe builddir --buildtype debugoptimized -Dtracy_enable=true -Dtracy:on_demand=true
meson compile -j 10 -C builddir
test: asset_build build
./builddir/runtests -d yes "[pathing]"
test: build
./builddir/runtests
run: build test
ifeq '$(OS)' 'Windows_NT'
@ -60,13 +49,10 @@ clean:
meson compile --clean -C builddir
debug_test: build
gdb --nx -x .gdbinit --ex run --ex bt --ex q --args builddir/runtests -e "[pathing]"
gdb --nx -x .gdbinit --ex run --args builddir/runtests -e
win_installer:
powershell 'start "C:\Program Files (x86)\solicus\InstallForge\bin\ifbuilderenvx86.exe" scripts\win_installer.ifp'
coverage_report:
powershell 'scripts/coverage_report.ps1'
money:
scc --exclude-dir subprojects

@ -1,5 +1,147 @@
# Repository Moved
# The Artisanal Handcrafted Retro-Future "3D" Dungeon Crawler
This repository is archived here and moved to https://git.zedshaw.games/games/raycaster
Welcome to my latest obsession, and turn based dungeon crawler in the style of old school raycasted
games like _Wizardry_, _Might and Magic_, _Ultima_, and similar games. The game uses SFML 3.x as
it's "cross platform layer" but other than that everything is hand coded by me. It's fully
artisinal, created manually, with nothing but a terminal and vim. No LSPs, AI, or anything.
This code is truly a work of art. Like an espresso at that Speakeasy Coffee bar in Brooklyn nobody
talks about. You know the one? You don't? Oh sorry, I thought you were cool.
## STATUS
Currently it's only officially tested on Windows, but I'm not really using anything OS specific (I
think).
## Where's the LICENSE?
You don't need a LICENSE that gives everything away to thieving corporations just to publish your
works online. Nobody makes artists, musicians, painters, photographers, or sculptors get a license
before posting online, so why do programmers need one? You worried you'll get sued? Ok, so just put
a disclaimer but why do you _also_ have to give your hard work away for anyone to steal and profit
from just so they don't sue you?
You don't, and no matter what the OSI says, nobody can sue you if they steal your code and cause a
plane to crash. _They_ would get sued for stealing your code and putting it in a plane, not you.
Requiring _only_ programmers to release their code with a license to avoid lawsuits creates a
[Chilling Effect](https://www.thefire.org/research-learn/chilling-effect-overview) on programmer free speech and that violates the First Amendment.
So this code isn't licensed, it's copyright by default. I'm publishing it using my free speech
rights to express myself and that means you can look at it the same as if I posted a painting or an
essay on my blog. I obviously can't sue you for just looking at it and playing the game because I
published it so you can, but _that doesn't mean you own it._ You can't resell it, fork it,
nothing.
Just grab the code and play it. That's it. Tell people about it. Fair use says you can even record
videos reviewing it and talking about it.
See? That's how Free Speech works. You don't need a LICENSE.
## Build Instructions
On all platforms you'll need these components:
* [Meson](https://mesonbuild.com/) -- which needs Python.
* C++ Compiler -- Tested with Clang and GCC 14.2.0. You can use my [Windows C++ Setup Guide](https://git.learnjsthehardway.com/learn-code-the-hard-way/lcthw-windows-installers) which features an automated installer for Windows.
* [GNU make](https://www.gnu.org/software/make/) -- For the convenience Makefile. On Windows you should have this if you used my setup scripts. Otherwise `winget install ezwinports.make` will set you up.
* [Ninja](https://ninja-build.org/) -- Meson uses this to do builds on most systems.
* [git](https://git-scm.com/) -- Which should be on almost every platform, and is installed by default with my Windows setup scripts.
### Windows Instructions
I primarily develop in Windows using the above setup, so this should work the best. Open [Windows
Terminal](https://github.com/microsoft/terminal) and run these commands _one at a time_. Don't
copy-past bomb this:
```shell
git clone https://git.learnjsthehardway.com/learn-code-the-hard-way/raycaster.git
cd raycaster
# ignore the errors the first time
./scripts/reset_build.ps1
# first compile takes a while
make
# this copies the binary so you can run it
make run
```
After that the game should be running. It'll be in different states depending on how far I've
pushed it, but you should at least have a few enemies, some loot, and rooms light in it. Go find them.
## Linux and OSX
Linux and OSX have the same requirements as Windows and almost the same install steps. The only
difference is that once you get your developer tools installed then you only need [Meson](https://mesonbuild.com/). Linux and OSX should have everything else you need or there's a package for it.
Once you have that installed you can run these commands:
```shell
git clone https://git.learnjsthehardway.com/learn-code-the-hard-way/raycaster.git
cd raycaster
# ignore the errors the first time
./scripts/reset_build.sh
# first compile takes a while
make
./builddir/zedcaster
```
You don't need `make run` because Linux and OSX are sane operating systems that don't lock every
damn thing a process touches.
### Other Platforms
No testing done on other platforms but let me know if you get it to build somewhere fun and I'll
mention it.
## Development Guide
You can look in the `notes.txt` file for my informal TODO list of things to fix and make. I'm not
really accepting contributions from others, but if you want to follow along then that's what I'm
doing.
If you're just starting out in C++ or programming then the project is designed to be readable by
someone who knows very little. Every file is small and should be easy to read. I don't use any
insane tricks or weird C++ idioms. I also try to avoid too many external libraries so I'll use
plain old [std::vector]() and [std::unordered_map]() rather than external libraries that might be
faster. This is done _on purpose_ so people (myself included) can learn about the basics of C++ and
the STL.
I also don't do a lot of performance tuning or obsession over _THE CACHE_. Clean, simple, readable
code is more important than squeezing 4% performance out of the code. I do however attempt to
design things so that it doesn't do useless work because the fastest thing you can do in a computer
is nothing. If I can architect away a performance issue and not make the code too complex then I'll
do that instead.
That means if you have a suggestion for a micro-benchmark improvement that will dramatically boost
performance, but the code is convoluted and hard to understand, then it won't work. If your
suggestion is interesting and provides a massive boost then let me know and I'll check it out. But,
I would also like statistics that show it's better, not just your word.
## Known Bugs
It's early so probably a bunch of bugs.
## Linux Build Notes
Libraries Needed:
* libxi-dev
* libfreetype-dev
It uses c++ so you may need to install a libg++ or libc++ for your system. Usually this is all you
need:
apt install build-essential
## OSX Build Notes
* Quite a bad experience. Need to install Python, cmake, meson, and ninja all which are in homebrew but if you don't use homebrew then this is a problem.
* You need to run the .command script in Application/your python that updates the SSL certs.
* You have to give iTerm access to your keystrokes...because wtf it already has them?

@ -34,7 +34,6 @@ namespace ai {
void update();
void dump();
std::string to_string();
};
struct AIManager {

@ -61,14 +61,4 @@ namespace ai {
dump_script(script, start, plan.script);
}
std::string EntityAI::to_string() {
AIProfile* profile = ai::profile();
std::string result = wants_to();
for(auto& [name, name_id] : *profile) {
result += fmt::format("\n{}={}", name, start.test(name_id));
}
return result;
}
}

@ -68,6 +68,7 @@ void Raycaster::position_camera(float player_x, float player_y) {
void Raycaster::draw_pixel_buffer() {
view_texture.update(pixels.to_raw_buf(), {(unsigned int)$width, (unsigned int)$height}, {0, 0});
// BUG: can I do this once and just update it?
$window.draw(view_sprite);
}

@ -9,8 +9,7 @@
"have_item": 6,
"have_healing": 7,
"detect_enemy": 8,
"tough_personality": 9,
"cant_move": 10
"tough_personality": 9
},
"actions": [
{
@ -33,8 +32,7 @@
"tough_personality": false,
"in_combat": true,
"have_healing": false,
"health_good": false,
"cant_move": false
"health_good": false
},
"effects": {
"in_combat": false
@ -54,19 +52,6 @@
"enemy_dead": true
}
},
{
"name": "face_enemy",
"cost": 10,
"needs": {
"no_more_enemies": false,
"in_combat": false,
"enemy_found": true
},
"effects": {
"in_combat": true,
"enemy_dead": true
}
},
{
"name": "collect_items",
"cost": 5,
@ -132,7 +117,6 @@
"Host::actions":
["find_enemy",
"kill_enemy",
"face_enemy",
"collect_items",
"use_healing"],
"Enemy::actions":

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

@ -22,207 +22,293 @@
"ui_hover": "assets/sounds/ui_hover.ogg",
"punch_cartoony": "assets/sounds/punch_cartoony.ogg",
"electric_shock_01": "assets/sounds/electric_shock_01.ogg",
"fireball_01": "assets/sounds/fireball_01.ogg",
"hp_status_80": "assets/sounds/hp_status_80.ogg",
"hp_status_60": "assets/sounds/hp_status_60.ogg",
"hp_status_30": "assets/sounds/hp_status_30.ogg",
"hp_status_10": "assets/sounds/hp_status_10.ogg",
"hp_status_00": "assets/sounds/hp_status_00.ogg"
"fireball_01": "assets/sounds/fireball_01.ogg"
},
"sprites": {
"gold_savior":
{"path": "assets/sprites/gold_savior.png",
{"path": "assets/gold_savior-256.png",
"frame_width": 256,
"frame_height": 256
},
"armored_knight":
{"path": "assets/sprites/armored_knight_1.png",
{"path": "assets/armored_knight_1-256.png",
"frame_width": 256,
"frame_height": 256
},
"axe_ranger":
{"path": "assets/sprites/axe_ranger.png",
"sword":
{"path": "assets/cinqueda_1-256.png",
"frame_width": 256,
"frame_height": 256
},
"hairy_spider":
{"path": "assets/sprites/hairy_spider.png",
"rat_with_sword":
{"path": "assets/rat_with_sword-256.png",
"frame_width": 256,
"frame_height": 256
},
"rat_with_sword":
{"path": "assets/sprites/rat_with_sword.png",
"rat_king":
{"path": "assets/rat_king-256.png",
"frame_width": 256,
"frame_height": 256
},
"rat_king_boss":
{"path": "assets/bossfights/rat_king_2_frame_animation.png",
{"path": "assets/rat_king_2_frame_animation.png",
"frame_width": 720,
"frame_height": 720
},
"barrel_small":
{"path": "assets/items/wood_barrel_small.png",
{"path": "assets/wood_barrel_small-256.png",
"frame_width": 256,
"frame_height": 256
},
"torch_pillar":
{"path": "assets/sprites/torch_pillar.png",
{"path": "assets/torch_pillar-256.png",
"frame_width": 256,
"frame_height": 256
},
"torch_crappy":
{"path": "assets/items/torch_crappy.png",
{"path": "assets/torch_crappy-256.png",
"frame_width": 256,
"frame_height": 256
},
"torch_horizontal_floor":
{"path": "assets/items/torch_horizontal_floor.png",
{"path": "assets/torch_horizontal_floor-256.png",
"frame_width": 256,
"frame_height": 256
},
"evil_eye":
{"path": "assets/evil_eye-sprites.png",
"frame_width": 256,
"frame_height": 256
},
"peasant_girl":
{"path": "assets/sprites/peasant_girl_2.png",
{"path": "assets/undead_peasant-256.png",
"frame_width": 256,
"frame_height": 256
},
"grave_stone":
{"path": "assets/sprites/grave_stone.png",
{"path": "assets/grave_stone-256.png",
"frame_width": 256,
"frame_height": 256
},
"floor":
{"path": "assets/floor_tile_test-256.png",
"frame_width": 256,
"frame_height": 256
},
"ceiling":
{"path": "assets/ceiling_test-256.png",
"frame_width": 256,
"frame_height": 256
},
"healing_potion_small":
{"path": "assets/items/healing_potion_small.png",
{"path": "assets/healing_potion_small-256.png",
"frame_width": 256,
"frame_height": 256
},
"well_down":
{"path": "assets/sprites/well_down.png",
{"path": "assets/well_down-256.png",
"frame_width": 256,
"frame_height": 256
},
"rope_vines_up":
{"path": "assets/sprites/rope_vines_up.png",
{"path": "assets/rope_vines_up-256.png",
"frame_width": 256,
"frame_height": 256
},
"tripwire_trap":
{"path": "assets/sprites/tripwire_trap.png",
{"path": "assets/tripwire_trap-256.png",
"frame_width": 256,
"frame_height": 256
},
"cinqueda":
{"path": "assets/cinqueda_1-256.png",
"frame_width": 256,
"frame_height": 256
},
"blood_splatter":
{"path": "assets/blood_splatter-256.png",
"frame_width": 256,
"frame_height": 256
},
"axe_ranger":
{"path": "assets/axe_ranger-256.png",
"frame_width": 256,
"frame_height": 256
},
"hairy_spider":
{"path": "assets/hairy_spider-256.png",
"frame_width": 256,
"frame_height": 256
},
"down_the_well":
{"path": "assets/down_the_well.jpg",
"frame_width": 900,
"frame_height": 600
},
"boss_fight_background":
{"path": "assets/bossfights/rat_king_boss_fight_background.jpg",
{"path": "assets/rat_king_boss_fight_background.jpg",
"frame_width": 1080,
"frame_height": 720
},
"devils_fingers_background":
{"path": "assets/bossfights/devils_fingers_background.jpg",
{"path": "assets/devils_fingers_background.jpg",
"frame_width": 1080,
"frame_height": 720
},
"devils_fingers_sprite":
{"path": "assets/bossfights/devils_fingers_sprite.png",
{"path": "assets/devils_fingers_sprite.png",
"frame_width": 720,
"frame_height": 720
},
"devils_fingers_stage":
{"path": "assets/bossfights/devils_fingers_stage.png",
{"path": "assets/devils_fingers_stage.png",
"frame_width": 1080,
"frame_height": 720
},
"tunnel_with_rocks":
{"path": "assets/bossfights/tunnel_with_rocks.png",
{"path": "assets/tunnel_with_rocks.png",
"frame_width": 1080,
"frame_height": 720
},
"tunnel_with_rocks_stage":
{"path": "assets/bossfights/tunnel_with_rocks_stage.png",
{"path": "assets/tunnel_with_rocks_stage.png",
"frame_width": 1080,
"frame_height": 720
},
"ritual_crafting_area":
{"path": "assets/ui/ritual_crafting_area.png",
{"path": "assets/ritual_crafting_area.png",
"frame_width": 380,
"frame_height": 720
},
"the_ritual_circle":
{"path": "assets/the_ritual_circle.png",
"frame_width": 380,
"frame_height": 380
},
"paper_ui_background":
{"path": "assets/paper_ui_background.png",
"frame_width": 380,
"frame_height": 720
},
"full_screen_paper":
{"path": "assets/ui/full_screen_paper.png",
{"path": "assets/full_screen_paper.png",
"frame_width": 1280,
"frame_height": 720
},
"broken_locket":
{"path": "assets/items/broken_locket.png",
"frame_width": 256,
"frame_height": 256
},
"broken_pen_knife":
{"path": "assets/items/broken_pen_knife.png",
"frame_width": 256,
"frame_height": 256
},
"broken_yoyo":
{"path": "assets/items/broken_yoyo.png",
"frame_width": 256,
"frame_height": 256
},
"chess_pawn":
{"path": "assets/items/chess_pawn.png",
"frame_width": 256,
"frame_height": 256
},
"dirty_kerchief":
{"path": "assets/items/dirty_kerchief.png",
"frame_width": 256,
"frame_height": 256
},
"leather_pouch":
{"path": "assets/items/leather_pouch.png",
"frame_width": 256,
"frame_height": 256
},
"mushroom":
{"path": "assets/items/mushroom.png",
"frame_width": 256,
"frame_height": 256
},
"pocket_watch":
{"path": "assets/items/pocket_watch.png",
"frame_width": 256,
"frame_height": 256
},
"rusty_nails":
{"path": "assets/items/rusty_nails.png",
"frame_width": 256,
"frame_height": 256
},
"severed_finger":
{"path": "assets/items/severed_finger.png",
"frame_width": 256,
"frame_height": 256
},
"stone_doll_cursed":
{"path": "assets/items/stone_doll_cursed.png",
"frame_width": 256,
"frame_height": 256
},
"dubious_combination":
{"path": "assets/items/dubious_combination.png",
"frame_width": 256,
"frame_height": 256
},
"dead_body":
{"path": "assets/sprites/dead_body.png",
"frame_width": 256,
"frame_height": 256
},
"dead_body_lootable":
{"path": "assets/sprites/dead_body_lootable.png",
"frame_width": 256,
"frame_height": 256
"broken_locket-64":
{"path": "assets/rituals/broken_locket-64.png",
"frame_width": 64,
"frame_height": 64
},
"broken_locket-128":
{"path": "assets/rituals/broken_locket-128.png",
"frame_width": 128,
"frame_height": 128
},
"broken_pen_knife-64":
{"path": "assets/rituals/broken_pen_knife-64.png",
"frame_width": 64,
"frame_height": 64
},
"broken_pen_knife-128":
{"path": "assets/rituals/broken_pen_knife-128.png",
"frame_width": 128,
"frame_height": 128
},
"broken_yoyo-64":
{"path": "assets/rituals/broken_yoyo-64.png",
"frame_width": 64,
"frame_height": 64
},
"broken_yoyo-128":
{"path": "assets/rituals/broken_yoyo-128.png",
"frame_width": 128,
"frame_height": 128
},
"chess_pawn-64":
{"path": "assets/rituals/chess_pawn-64.png",
"frame_width": 64,
"frame_height": 64
},
"chess_pawn-128":
{"path": "assets/rituals/chess_pawn-128.png",
"frame_width": 128,
"frame_height": 128
},
"dirty_kerchief-64":
{"path": "assets/rituals/dirty_kerchief-64.png",
"frame_width": 64,
"frame_height": 64
},
"dirty_kerchief-128":
{"path": "assets/rituals/dirty_kerchief-128.png",
"frame_width": 128,
"frame_height": 128
},
"leather_pouch-64":
{"path": "assets/rituals/leather_pouch-64.png",
"frame_width": 64,
"frame_height": 64
},
"leather_pouch-128":
{"path": "assets/rituals/leather_pouch-128.png",
"frame_width": 128,
"frame_height": 128
},
"mushroom-64":
{"path": "assets/rituals/mushroom-64.png",
"frame_width": 64,
"frame_height": 64
},
"mushroom-128":
{"path": "assets/rituals/mushroom-128.png",
"frame_width": 128,
"frame_height": 128
},
"pocket_watch-64":
{"path": "assets/rituals/pocket_watch-64.png",
"frame_width": 64,
"frame_height": 64
},
"pocket_watch-128":
{"path": "assets/rituals/pocket_watch-128.png",
"frame_width": 128,
"frame_height": 128
},
"rusty_nails-64":
{"path": "assets/rituals/rusty_nails-64.png",
"frame_width": 64,
"frame_height": 64
},
"rusty_nails-128":
{"path": "assets/rituals/rusty_nails-128.png",
"frame_width": 128,
"frame_height": 128
},
"severed_finger-64":
{"path": "assets/rituals/severed_finger-64.png",
"frame_width": 64,
"frame_height": 64
},
"severed_finger-128":
{"path": "assets/rituals/severed_finger-128.png",
"frame_width": 128,
"frame_height": 128
},
"stone_doll_cursed-64":
{"path": "assets/rituals/stone_doll_cursed-64.png",
"frame_width": 64,
"frame_height": 64
},
"stone_doll_cursed-128":
{"path": "assets/rituals/stone_doll_cursed-128.png",
"frame_width": 128,
"frame_height": 128
}
},
"worldgen": {
"enemy_probability": 50,
"empty_room_probability": 1,
"device_probability": 10
},
"graphics": {
@ -238,12 +324,9 @@
"W": 8592,
"NW": 8598
},
"theme": {
"NOTE": "colors are in assets/palette.json",
"padding": 3,
"border_px": 1,
"text_size": 20,
"label_size": 20,
"font_file_name": "assets/text.otf"
}
"test_rituals": [
{ "has_spikes": true, "active": true },
{ "has_magick": true, "active": true },
{ "has_magick": true, "shiny_bauble": true, "active": true }
]
}

@ -7,13 +7,13 @@
"inventory_count": 0,
"randomized": false,
"components": [
{"_type": "Tile", "display": 6105,
"foreground": "devices/fg:stairs_down",
"background": "devices/bg:stairs_down"
{"_type": "Tile", "display": 10949,
"foreground": [24, 205, 189],
"background": [24, 205, 189]
},
{"_type": "Device",
"config": {},
"events": ["STAIRS_DOWN"]},
"config": {"test": true},
"events": ["Events::GUI::STAIRS_DOWN"]},
{"_type": "Sprite", "name": "well_down", "width": 256, "height": 256, "scale": 1.0}
]
},
@ -25,12 +25,12 @@
"placement": "fixed",
"components": [
{"_type": "Tile", "display": 8793,
"foreground": "devices/fg:stairs_up",
"background": "devices/fg:stairs_up"
"foreground": [24, 205, 189],
"background": [24, 205, 189]
},
{"_type": "Device",
"config": {},
"events": ["STAIRS_UP"]},
"config": {"test": true},
"events": ["Events::GUI::STAIRS_UP"]},
{"_type": "Sprite", "name": "rope_vines_up", "width": 256, "height": 256, "scale": 1.0}
]
},
@ -40,66 +40,14 @@
"description": "Watch where you're going.",
"inventory_count": 0,
"components": [
{"_type": "Tile", "display": 95,
"foreground": "devices/fg:tripwire",
"background": "devices/bg:tripwire"
{"_type": "Tile", "display": 6855,
"foreground": [24, 205, 189],
"background": [24, 205, 189]
},
{"_type": "Device", "config": {}, "events": ["TRAP"]},
{"_type": "Device",
"config": {"test": true},
"events": ["Events::GUI::TRAP"]},
{"_type": "Sprite", "name": "tripwire_trap", "width": 256, "height": 256, "scale": 1.0}
]
},
"BARREL_SMALL": {
"id": "BARREL_SMALL",
"name": "Small Barrel",
"description": "A small rotten barrel that may hold things.",
"components": [
{"_type": "Tile", "display": 85,
"foreground": "devices/fg:barrel",
"background": "devices/bg:barrel"
},
{"_type": "Device", "config": {}, "events": ["LOOT_CONTAINER"]},
{"_type": "Sprite", "name": "barrel_small", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"GRAVE_STONE": {
"id": "GRAVE_STONE",
"name": "Grave Stone",
"description": "Something died here. Was this your doing?",
"components": [
{"_type": "Tile", "display": 8687,
"foreground": "devices/fg:grave_stone",
"background": "devices/bg:grave_stone"
},
{"_type": "Device", "config": {}, "events": ["LOOT_CONTAINER"]},
{"_type": "Sprite", "name": "grave_stone", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"DEAD_BODY_LOOTABLE": {
"id": "DEAD_BODY_LOOTABLE",
"name": "Grave Stone",
"description": "Something died here. Was this your doing?",
"components": [
{"_type": "Tile", "display": 1890,
"foreground": "devices/fg:dead_body_lootable",
"background": "devices/bg:dead_body_lootable"
},
{"_type": "Device", "config": {}, "events": ["LOOT_CONTAINER"]},
{"_type": "Sprite", "name": "dead_body_lootable", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"DEAD_BODY": {
"id": "DEAD_BODY",
"name": "Something Dead",
"description": "You can't loot this, weirdo.",
"components": [
{"_type": "Tile", "display": 1939,
"foreground": "devices/fg:dead_body",
"background": "devices/bg:dead_body"
},
{"_type": "Sprite", "name": "dead_body", "width": 256, "height": 256, "scale": 1.0}
]
}
}

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Before

Width:  |  Height:  |  Size: 665 KiB

After

Width:  |  Height:  |  Size: 665 KiB

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

@ -2,40 +2,22 @@
"PLAYER_TILE": {
"placement": "fixed",
"components": [
{"_type": "Tile", "display": 10733,
"foreground": "enemies/fg:player",
"background": "color:transparent"
{"_type": "Tile", "display": 42603,
"foreground": [255, 200, 125],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 200, "max_hp": 200, "damage": 10, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "Collision", "has": true},
{"_type": "LightSource", "strength": 35, "radius": 2.0}
]
},
"GOLD_SAVIOR": {
"components": [
{"_type": "Tile", "display": 42586,
"foreground": "enemies/fg:gold_savior",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 1, "dead": false},
{"_type": "Collision", "has": true},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "ai_script": "Enemy::actions", "ai_start_name": "Enemy::initial_state", "ai_goal_name": "Enemy::final_state"},
{"_type": "Personality", "hearing_distance": 5, "tough": false},
{"_type": "Animation", "easing": 1, "ease_rate": 0.2, "scale": 0.1, "simple": true, "frames": 10, "speed": 0.3, "stationary": false},
{"_type": "Sprite", "name": "gold_savior", "width": 256, "height": 256, "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "Sword_Hit_2", "death": "Humanoid_Death_1"}
{"_type": "LightSource", "strength": 45, "radius": 2.0}
]
},
"KNIGHT": {
"components": [
{"_type": "Tile", "display": 2216,
"foreground": "enemies/fg:knight",
"background": "color:transparent"
{"_type": "Tile", "display": 2189,
"foreground": [131, 213, 238],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 1, "dead": false},
{"_type": "Collision", "has": true},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "ai_script": "Enemy::actions", "ai_start_name": "Enemy::initial_state", "ai_goal_name": "Enemy::final_state"},
{"_type": "Personality", "hearing_distance": 5, "tough": true},
@ -47,27 +29,25 @@
"AXE_RANGER": {
"components": [
{"_type": "Tile", "display": 1898,
"foreground": "enemies/fg:axe_ranger",
"background": "color:transparent"
"foreground": [156, 172, 197],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 40, "max_hp": 40, "damage": 10, "dead": false},
{"_type": "Collision", "has": true},
{"_type": "Motion", "dx": 0, "dy": 0, "random": true},
{"_type": "EnemyConfig", "ai_script": "Enemy::actions", "ai_start_name": "Enemy::initial_state", "ai_goal_name": "Enemy::final_state"},
{"_type": "Personality", "hearing_distance": 5, "tough": true},
{"_type": "Sprite", "name": "axe_ranger", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Animation", "easing": 3, "ease_rate": 0.5, "scale": 0.1, "simple": true, "frames": 1, "speed": 0.6, "stationary": false},
{"_type": "Animation", "easing": 3, "ease_rate": 0.5, "scale": 0.1, "simple": false, "frames": 2, "speed": 0.6, "stationary": false},
{"_type": "Sound", "attack": "Sword_Hit_2", "death": "Ranger_1"}
]
},
"RAT_GIANT": {
"components": [
{"_type": "Tile", "display": 2220,
"foreground": "enemies/fg:rat_giant",
"background": "color:transparent"
"foreground": [205, 164, 246],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 50, "max_hp": 50, "damage": 2, "dead": false},
{"_type": "Collision", "has": true},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "ai_script": "Enemy::actions", "ai_start_name": "Enemy::initial_state", "ai_goal_name": "Enemy::final_state"},
{"_type": "Personality", "hearing_distance": 5, "tough": false},
@ -79,11 +59,10 @@
"SPIDER_GIANT_HAIRY": {
"components": [
{"_type": "Tile", "display": 1218,
"foreground": "enemies/fg:spider_giant",
"background": "color:transparent"
"foreground": [205, 164, 246],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},
{"_type": "Collision", "has": true},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "ai_script": "Enemy::actions", "ai_start_name": "Enemy::initial_state", "ai_goal_name": "Enemy::final_state"},
{"_type": "Personality", "hearing_distance": 5, "tough": true},

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -1,12 +0,0 @@
{
"healing_potion_small":
{"path": "assets/icons/healing_potion_small.png",
"frame_width": 96,
"frame_height": 96
},
"torch_horizontal_floor":
{"path": "assets/icons/torch_horizontal_floor.png",
"frame_width": 96,
"frame_height": 96
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

@ -7,13 +7,58 @@
"components": [
{"_type": "LightSource", "strength": 50, "radius": 2.5},
{"_type": "Tile", "display": 3848,
"foreground": "items/fg:flame",
"background": "color:transparent"
"foreground": [24, 120, 189],
"background": [230,120, 120]
},
{"_type": "Sprite", "name": "torch_horizontal_floor", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"SWORD_RUSTY": {
"id": "SWORD_RUSTY",
"name": "Rusty Junk Sword",
"description": "A sword left to rot in a deep hole where it acquired a patina of dirt and tetanus. You aren't sure if it's more deadly for you to hold it or for the people you stab with it.",
"inventory_count": 1,
"components": [
{"_type": "Weapon", "damage": 15},
{"_type": "Tile", "display": 7735,
"foreground": [24, 120, 189],
"background": [24, 120, 189]
},
{"_type": "Sprite", "name": "cinqueda", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"BARREL_SMALL": {
"id": "BARREL_SMALL",
"name": "Small Barrel",
"description": "A small rotten barrel that may hold things.",
"components": [
{"_type": "Tile", "display": 43754,
"foreground": [150, 100, 189],
"background": [150, 100, 189]
},
{"_type": "Loot", "amount": 10},
{"_type": "Sprite", "name": "barrel_small", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
],
"inventory_count": 1
},
"TORCH_PILLAR": {
"id": "TORCH_PILLAR",
"name": "Light Hanging from Ceiling",
"description": "Light Hanging from Ceiling",
"inventory_count": 0,
"components": [
{"_type": "Tile", "display": 1918,
"foreground": [24, 205, 210],
"background": [24, 205, 210]
},
{"_type": "LightSource", "strength": 50, "radius": 2.8},
{"_type": "Sprite", "name": "torch_pillar", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"POTION_HEALING_SMALL": {
"id": "POTION_HEALING_SMALL",
"name": "Small Healing Potion",
@ -21,12 +66,27 @@
"inventory_count": 1,
"components": [
{"_type": "Tile", "display": 1003,
"foreground": "items/fg:potion",
"background": "color:transparent"
"foreground": [255, 205, 189],
"background": [255, 205, 189]
},
{"_type": "Curative", "hp": 20},
{"_type": "Sprite", "name": "healing_potion_small", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"GRAVE_STONE": {
"id": "GRAVE_STONE",
"name": "Grave Stone",
"description": "Something died here. Was this your doing?",
"inventory_count": 1,
"components": [
{"_type": "Tile", "display": 8687,
"foreground": [32, 123, 164],
"background": [24, 205, 189]
},
{"_type": "Loot", "amount": 10},
{"_type": "Sprite", "name": "grave_stone", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

@ -1,140 +0,0 @@
[
{
"centered": false,
"display": 35,
"x": 0,
"y": 0
},
{
"centered": false,
"display": 8284,
"x": 64,
"y": 0
},
{
"centered": false,
"display": 11590,
"x": 128,
"y": 0
},
{
"centered": false,
"display": 10899,
"x": 192,
"y": 0
},
{
"centered": false,
"display": 9256,
"x": 256,
"y": 0
},
{
"centered": false,
"display": 9608,
"x": 320,
"y": 0
},
{
"centered": false,
"display": 10747,
"x": 384,
"y": 0
},
{
"centered": false,
"display": 8285,
"x": 448,
"y": 0
},
{
"centered": true,
"display": 1003,
"x": 512,
"y": 0
},
{
"centered": true,
"display": 3848,
"x": 576,
"y": 0
},
{
"centered": true,
"display": 85,
"x": 0,
"y": 64
},
{
"centered": true,
"display": 1939,
"x": 64,
"y": 64
},
{
"centered": true,
"display": 1890,
"x": 128,
"y": 64
},
{
"centered": true,
"display": 8687,
"x": 192,
"y": 64
},
{
"centered": true,
"display": 6105,
"x": 256,
"y": 64
},
{
"centered": true,
"display": 8793,
"x": 320,
"y": 64
},
{
"centered": true,
"display": 95,
"x": 384,
"y": 64
},
{
"centered": true,
"display": 1898,
"x": 448,
"y": 64
},
{
"centered": true,
"display": 42586,
"x": 512,
"y": 64
},
{
"centered": true,
"display": 2216,
"x": 576,
"y": 64
},
{
"centered": true,
"display": 10733,
"x": 0,
"y": 128
},
{
"centered": true,
"display": 2220,
"x": 64,
"y": 128
},
{
"centered": true,
"display": 1218,
"x": 128,
"y": 128
}
]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

@ -1,81 +0,0 @@
{
"color": {
"transparent": [100, 100, 100, 100],
"BAD": [255, 0, 0]
},
"gui/theme": {
"black": [0, 0, 0, 255],
"dark_dark": [10, 10, 10, 255],
"dark_mid": [30, 30, 30, 255],
"dark_light": [60, 60, 60, 255],
"mid": [100, 100, 100, 255],
"light_dark": [150, 150, 150, 255],
"light_mid": [200, 200, 200, 255],
"light_light": [230, 230, 230, 255],
"white": [255, 255, 255, 255],
"fill_color": "gui/theme:dark_mid",
"text_color": "gui/theme:light_light",
"bg_color": "gui/theme:mid",
"border_color": "gui/theme:dark_dark",
"bg_color_dark": "gui/theme:black"
},
"map/theme": {
"black": [0, 0, 0, 255],
"dark_dark": [10, 10, 10, 255],
"dark_mid": [30, 30, 30, 255],
"dark_light": [60, 60, 60, 255],
"mid": [100, 100, 100, 255],
"light_dark": [150, 150, 150, 255],
"light_mid": [200, 200, 200, 255],
"light_light": [230, 230, 230, 255],
"white": [255, 255, 255, 255]
},
"items/fg": {
"flame": "map/theme:white",
"potion": "map/theme:white"
},
"enemies/fg": {
"player": "map/theme:white",
"gold_savior": "map/theme:white",
"knight": "map/theme:white",
"axe_ranger": "map/theme:white",
"rat_giant": "map/theme:white",
"spider_giant": "map/theme:white"
},
"tiles/fg": {
"floor_tile": "map/theme:mid",
"wall_plain": "map/theme:dark_mid",
"wall_moss": "map/theme:dark_light",
"ceiling_black": "color:transparent",
"lava_floor": [200, 100, 100],
"gray_stone_floor_light": [40, 60, 180],
"wood_wall": "map/theme:dark_mid"
},
"tiles/bg": {
"floor_tile": "map/theme:dark_dark",
"wall_plain": "map/theme:dark_dark",
"wall_moss": "map/theme:light_dark",
"ceiling_black": "color:transparent",
"lava_floor": "map/theme:dark_dark",
"gray_stone_floor_light": "map/theme:dark_mid",
"wood_wall": "map/theme:dark_dark"
},
"devices/fg": {
"stairs_down": [24, 205, 189],
"stairs_up": [24, 205, 189],
"tripwire": [24, 205, 189],
"barrel": [150, 100, 189],
"grave_stone": [32, 123, 164],
"dead_body": [32, 123, 164],
"dead_body_lootable": [32, 123, 164]
},
"devices/bg": {
"stairs_down": [24, 205, 189],
"stairs_up": [24, 205, 189],
"tripwire": [24, 205, 189],
"barrel": [150, 100, 189],
"grave_stone": [24, 205, 189],
"dead_body": [24, 205, 189],
"dead_body_lootable": [24, 205, 189]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Before

Width:  |  Height:  |  Size: 1011 KiB

After

Width:  |  Height:  |  Size: 1011 KiB

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Before

Width:  |  Height:  |  Size: 466 KiB

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Before

Width:  |  Height:  |  Size: 666 KiB

After

Width:  |  Height:  |  Size: 666 KiB

@ -169,34 +169,5 @@
"damage": 16,
"probability": 1.0
}
},
"junk": {
"chess_pawn": {
"name": "chess_pawn",
"provides": ["cursed_item"]
},
"dirty_kerchief": {
"name": "dirty_kerchief",
"provides": ["has_magick"]
},
"mushroom": {
"name": "mushroom",
"provides": ["has_magick"]
},
"pocket_watch": {
"name": "pocket_watch",
"provides": ["shiny_bauble"]
},
"rusty_nails": {
"name": "rusty_nails",
"provides": ["has_spikes"]
},
"severed_finger": {
"name": "severed_finger",
"provides": ["cursed_item"]
}
},
"starting_junk": [
"pocket_watch", "mushroom", "rusty_nails"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@ -1,10 +1,8 @@
#version 120
uniform vec2 u_resolution;
uniform float u_time;
uniform sampler2D source;
uniform float u_mouse;
uniform float value = 0.2;
uniform int octaves=8;
float random (in vec2 st) {
return fract(sin(dot(st.xy,
@ -28,7 +26,7 @@ float noise(in vec2 st) {
(d - b) * u.x * u.y;
}
float fbm(in vec2 st) {
float fbm(in vec2 st, int octaves=8) {
float v = 0.0;
float a = 0.5;
vec2 shift = vec2(100.0);
@ -49,7 +47,7 @@ void main() {
vec3 color = vec3(0.0);
float speed = u_time * 10.0;
float value = 0.8; // cos(u_time) * cos(u_time);
float value = cos(u_time) * cos(u_time);
vec2 q = vec2(0.0);
q.x = fbm(st + 0.00 * speed);

@ -1,10 +1,8 @@
#version 120
uniform vec2 u_resolution;
uniform float u_time;
uniform sampler2D source;
uniform float u_mouse;
uniform float value = 0.2;
uniform int octaves=8;
float random (in vec2 st) {
return fract(sin(dot(st.xy,
@ -28,7 +26,7 @@ float noise(in vec2 st) {
(d - b) * u.x * u.y;
}
float fbm(in vec2 st) {
float fbm(in vec2 st, int octaves=8) {
float v = 0.0;
float a = 0.5;
vec2 shift = vec2(100.0);

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Some files were not shown because too many files have changed in this diff Show More