Martin Dørum
15f83881b1
background colors
преди 3 години
Martin Dørum
f8ad8b808a
draw rect
преди 3 години
Martin Dørum
b04d30022a
make everything work with proper matrix stuff
преди 3 години
Martin Dørum
33eda68f12
correctly position some things
преди 3 години
Martin Dørum
fb898427d9
hey, something draws to the screen now
преди 3 години
Martin Dørum
46fd6289e3
fix initialization order
преди 3 години
Martin Dørum
447d4e8d39
libswan and core.mod now compiles
преди 3 години
Martin Dørum
de5e49e700
rewrite mod and asset loading logic
преди 3 години
Martin Dørum
f01f0e1a96
some missing style things
преди 3 години
Martin Dørum
2348fe9f64
move item and tile to struct
преди 3 години
Martin Dørum
0db704582d
make style consistent
преди 3 години
Martin Dørum
b8fcf907d5
integrate lighting with swan
преди 3 години
Martin Dørum
b2fd4178df
new trait system, split Body into Body and Physics
преди 4 години
Martin Dørum
abc277b256
integrate tracy, cmake stuff, etc
преди 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
e9c9c862e8
mods are responsible for creating the mod object now, not just init
преди 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
24b8fdcd8d
more optimization
преди 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
056579e6be
cave background stuff
преди 4 години
Martin Dørum
ce70c058aa
mostly performance stuff
преди 4 години
Martin Dørum
3b4ce891fe
traits
преди 4 години
Martin Dørum
d44754b089
chunk stuff
преди 4 години
Martin Dørum
98fcf0dde9
throttle chunk generation
преди 4 години
Martin Dørum
201dffd6fc
make World::addPlane slightly clearer
преди 4 години
Martin Dørum
f22b1e47e7
mod loading and resource stuff
преди 4 години
Martin Dørum
0993872ad5
at least it now draws _something_...
преди 4 години
Martin Dørum
191c5034b8
colorful logging
преди 4 години
Martin Dørum
2a016c2c5f
replace fprintf with log.h stuff
преди 4 години
Martin Dørum
5d92544963
resource stuff
преди 4 години
Martin Dørum
c527655e79
almost ported to SDL
преди 4 години
Martin Dørum
401e069646
hey, this compiles now
преди 4 години
Martin Dørum
e71e20c6c5
WIP, rewriting stuff to use SDL instead of SFML
преди 4 години
Martin Dørum
3902a2d652
move Win into its own thing, make vector stuff constexpr
преди 4 години
Martin Dørum
362adf6171
clang-tidy
преди 4 години
Martin Dørum
ba28d348d0
despawning, add dt to tick(), etc
преди 4 години
Martin Dørum
95ac54ddc3
make Swan::Vector2 a struct
преди 4 години
Martin Dørum
1a5988bfd9
bounding box
преди 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
c78891fe7f
Swan::Context
преди 4 години
Martin Dørum
21926981f9
items
преди 4 години
Martin Dørum
e12ba020fa
changed tile registration and stuff
преди 4 години
Martin Dørum
294a3528b9
add the ability to compress chunks
преди 4 години
Martin Dørum
660c6f9f7a
way faster chunk rendering
преди 4 години
Martin Dørum
e01584038f
get tile at mouse position
преди 4 години
Martin Dørum
11406a6680
use INVALID_* rather than null
преди 4 години
Martin Dørum
fa91b4ad83
remove TileMap
преди 4 години
Martin Dørum
6a19a4cc46
a bunch of stuff ok
преди 4 години
Martin Dørum
647cded803
animation stuff, scaling, etc
преди 4 години