Martin Dørum
cc1c71717a
change InventoryTrait to new trait system
преди 4 години
Martin Dørum
b2fd4178df
new trait system, split Body into Body and Physics
преди 4 години
Martin Dørum
93ecc0a214
allow despawning entities
преди 4 години
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
преди 4 години
Martin Dørum
976d9b4b9c
replace core::air with @::air
"@internal::" is also renamed to "@::" for libswan-internal stuff.
преди 4 години
Martin Dørum
07c46110e5
removed unused line
преди 4 години
Martin Dørum
e9c9c862e8
mods are responsible for creating the mod object now, not just init
преди 4 години
Martin Dørum
d25a7f8458
nicer entity ctors
преди 4 години
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.
преди 4 години
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)
преди 4 години
Martin Dørum
491481e63a
more renaming
преди 4 години
Martin Dørum
253c24148e
WGDefault -> DefaultWorldGen
преди 4 години
Martin Dørum
be5ac63730
visuals
преди 4 години
Martin Dørum
bb1817ac7a
texture stuff
преди 4 години
Martin Dørum
9f6f2abd9b
deeper
преди 4 години
Martin Dørum
056579e6be
cave background stuff
преди 4 години
Martin Dørum
903774f7a7
caves
преди 4 години
Martin Dørum
ce70c058aa
mostly performance stuff
преди 4 години
Martin Dørum
3f4040720d
minor stuff
преди 4 години
Martin Dørum
fa163b4bd3
more pure functional tile gen
преди 4 години
Martin Dørum
1a64feb187
just a bunch of stuff
преди 4 години
Martin Dørum
5794938993
inventory stuff mainly
преди 4 години
Martin Dørum
6347a737b3
FORCE -> MOVE_FORCE
преди 4 години
Martin Dørum
18265a30e2
number tweakings etc
преди 4 години
Martin Dørum
702ad886af
fall down with greater gravity
преди 4 години
Martin Dørum
15abd13f12
better world gen
преди 4 години
Martin Dørum
3b4ce891fe
traits
преди 4 години
Martin Dørum
3b2479c791
texture alpha/color mods
преди 4 години
Martin Dørum
d06bede011
rendering
преди 4 години
Martin Dørum
aa3b7ffa87
add a max delta time
преди 4 години
Martin Dørum
201dffd6fc
make World::addPlane slightly clearer
преди 4 години
Martin Dørum
77a9aca716
slowly but surely approaching feature parity
преди 4 години
Martin Dørum
f22b1e47e7
mod loading and resource stuff
преди 4 години
Martin Dørum
c527655e79
almost ported to SDL
преди 4 години
Martin Dørum
401e069646
hey, this compiles now
преди 4 години
Martin Dørum
5d34c09ca3
at least it compiles now
преди 4 години
Martin Dørum
e71e20c6c5
WIP, rewriting stuff to use SDL instead of SFML
преди 4 години
Martin Dørum
e1fef8792e
integrate imgui, and associated build system work
преди 4 години
Martin Dørum
41acf5762e
much more reliable collisions
преди 4 години
Martin Dørum
e7437ef94c
randomness
преди 4 години
Martin Dørum
362adf6171
clang-tidy
преди 4 години
Martin Dørum
ba28d348d0
despawning, add dt to tick(), etc
преди 4 години
Martin Dørum
0b46a4b423
a couple small item fixes
преди 4 години
Martin Dørum
91d08dd9c7
PhysicsEntity
преди 4 години
Martin Dørum
95ac54ddc3
make Swan::Vector2 a struct
преди 4 години
Martin Dørum
1a5988bfd9
bounding box
преди 4 години
Martin Dørum
51c031900d
make ItemStack visible
преди 4 години
Martin Dørum
92ef995116
visible entity, cmake stuff
преди 4 години
Martin Dørum
718281b35b
wow, that was many changes.
This should've been multiple commits, but hey, it's late.
преди 4 години
Martin Dørum
4ff0dbcc16
a bunch of SRF stuff, and use SRF for entity params
преди 4 години