Martin Dørum
54b78a7bcf
get rid of everything SDL (except for SDL_image)
пре 2 година
Martin Dørum
367143b2ab
add Swan::random(), call onSpawn on tiles when spawning them
пре 2 година
Martin Dørum
f1db1a121e
some redesign and getting rid of some warnings
пре 2 година
Martin Dørum
6708ce6652
add meson build
пре 2 година
Martin Dørum
9eeb30960f
somewhat synchronize light server stuff
пре 3 година
Martin Dørum
1f787baf78
integrate shadows
пре 3 година
Martin Dørum
15f83881b1
background colors
пре 3 година
Martin Dørum
a3bb6ea0e7
fix lighting server ordering
пре 3 година
Martin Dørum
164d7bde06
compute tile pos
пре 3 година
Martin Dørum
b7347d749d
some small stuff
пре 3 година
Martin Dørum
7b477216e7
chunk rendering
пре 3 година
Martin Dørum
fc129655b5
fix initialization order issues
пре 3 година
Martin Dørum
b04d30022a
make everything work with proper matrix stuff
пре 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
7edfaed271
more cygnet stuff
пре 3 година
Martin Dørum
025ac43e55
sunlight
пре 3 година
Martin Dørum
d3ca166d2f
more lighting
пре 3 година
Martin Dørum
293b05bade
lights are floats, range 0-1
пре 3 година
Martin Dørum
7bc2c743bc
some light smoothing
пре 3 година
Martin Dørum
367880391e
include fixes
пре 3 година
Martin Dørum
8f2e3578ea
lighting
пре 3 година
Martin Dørum
d00aea0dca
more lighting
пре 3 година
Martin Dørum
2ddc6cb454
only update light for chunks which need it
пре 3 година
Martin Dørum
c9ce067e11
lighting changes
пре 3 година
Martin Dørum
b8fcf907d5
integrate lighting with swan
пре 3 година
Martin Dørum
569df98e5c
LightingThread -> LightServer
пре 3 година
Martin Dørum
f9aaf6e5c7
more lighting stuff
пре 3 година
Martin Dørum
102be7ec37
lighting system work
пре 3 година
Martin Dørum
262ca389fe
a kind of lighting effect
пре 3 година
Martin Dørum
e8315c9332
light map
пре 3 година
Martin Dørum
9dd2bc1337
remove PerfCounter, rely on tracy
пре 3 година
Martin Dørum
e20d10ee29
automatically center entity when spawning
пре 3 година
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
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
56e541b9b2
renderbuf is vestigial
пре 4 година
Martin Dørum
24b8fdcd8d
more optimization
пре 4 година
Martin Dørum
08d7346d5b
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 година