Martin Dørum
abc277b256
integrate tracy, cmake stuff, etc
hace 4 años
Martin Dørum
4a8694dc27
store entities contiguously in memory
There are still some things left to do:
* Implement despawn
* Maybe shrink SlotVector if there's a lot more free slots than occupied slots
* Implement iteration over entities
hace 4 años
Martin Dørum
976d9b4b9c
replace core::air with @::air
"@internal::" is also renamed to "@::" for libswan-internal stuff.
hace 4 años
Martin Dørum
e9c9c862e8
mods are responsible for creating the mod object now, not just init
hace 4 años
Martin Dørum
1fb53a1df3
event system
I know, I know, this segfaults on exit.
I need to make each mod subclass a Swan::Mod superclass
so that they can have EventListener structs which are
destroyed when the mod exits, and the mod has to exit
before the world goes away so that mods' EventListener
dtors can access their respective EventEmitters.
hace 4 años
Martin Dørum
24b8fdcd8d
more optimization
hace 4 años
Martin Dørum
d808b8bcfb
this is a big one
* reworked some resource loading and mod init stuff
* texetures are now configured at runtime via .toml files
* moved from SRF to messagepack
* changed folder structures
* added the fmt library (for later)
hace 4 años
Martin Dørum
056579e6be
cave background stuff
hace 4 años
Martin Dørum
ce70c058aa
mostly performance stuff
hace 4 años
Martin Dørum
3b4ce891fe
traits
hace 4 años
Martin Dørum
d44754b089
chunk stuff
hace 4 años
Martin Dørum
98fcf0dde9
throttle chunk generation
hace 4 años
Martin Dørum
201dffd6fc
make World::addPlane slightly clearer
hace 4 años
Martin Dørum
f22b1e47e7
mod loading and resource stuff
hace 4 años
Martin Dørum
0993872ad5
at least it now draws _something_...
hace 4 años
Martin Dørum
191c5034b8
colorful logging
hace 4 años
Martin Dørum
2a016c2c5f
replace fprintf with log.h stuff
hace 4 años
Martin Dørum
5d92544963
resource stuff
hace 4 años
Martin Dørum
c527655e79
almost ported to SDL
hace 4 años
Martin Dørum
401e069646
hey, this compiles now
hace 4 años
Martin Dørum
e71e20c6c5
WIP, rewriting stuff to use SDL instead of SFML
hace 4 años
Martin Dørum
3902a2d652
move Win into its own thing, make vector stuff constexpr
hace 4 años
Martin Dørum
362adf6171
clang-tidy
hace 4 años
Martin Dørum
ba28d348d0
despawning, add dt to tick(), etc
hace 4 años
Martin Dørum
95ac54ddc3
make Swan::Vector2 a struct
hace 4 años
Martin Dørum
1a5988bfd9
bounding box
hace 4 años
Martin Dørum
718281b35b
wow, that was many changes.
This should've been multiple commits, but hey, it's late.
hace 4 años
Martin Dørum
c78891fe7f
Swan::Context
hace 4 años
Martin Dørum
21926981f9
items
hace 4 años
Martin Dørum
e12ba020fa
changed tile registration and stuff
hace 4 años
Martin Dørum
294a3528b9
add the ability to compress chunks
hace 4 años
Martin Dørum
660c6f9f7a
way faster chunk rendering
hace 4 años
Martin Dørum
e01584038f
get tile at mouse position
hace 4 años
Martin Dørum
11406a6680
use INVALID_* rather than null
hace 4 años
Martin Dørum
fa91b4ad83
remove TileMap
hace 4 años
Martin Dørum
6a19a4cc46
a bunch of stuff ok
hace 4 años
Martin Dørum
647cded803
animation stuff, scaling, etc
hace 4 años
Martin Dørum
998289c194
better chunk thing
hace 4 años
Martin Dørum
cb83477950
more chunk gen stuff, world gen stuff, etc
hace 4 años
Martin Dørum
da5d36d49e
more changes
hace 4 años
Martin Dørum
9c3a2496e4
entities
hace 4 años
Martin Dørum
b2a0559818
entities, and changes to worldgen
hace 4 años
Martin Dørum
7579d04fb6
world gens and a bunch of stuff
hace 4 años
Martin Dørum
78bd1112be
basic collision
hace 4 años
Martin Dørum
a5580d9882
ThingID -> ID
hace 4 años
Martin Dørum
09bb3eceb5
hey, drawing
hace 4 años
Martin Dørum
5bbe431f1b
almost ready to draw chunks!
hace 4 años
Martin Dørum
19293a67b2
libswan, core mod, etc
hace 4 años