Martin Dørum
9eeb30960f
somewhat synchronize light server stuff
pirms 3 gadiem
Martin Dørum
15f83881b1
background colors
pirms 3 gadiem
Martin Dørum
a3bb6ea0e7
fix lighting server ordering
pirms 3 gadiem
Martin Dørum
7b477216e7
chunk rendering
pirms 3 gadiem
Martin Dørum
447d4e8d39
libswan and core.mod now compiles
pirms 3 gadiem
Martin Dørum
f01f0e1a96
some missing style things
pirms 3 gadiem
Martin Dørum
2348fe9f64
move item and tile to struct
pirms 3 gadiem
Martin Dørum
0db704582d
make style consistent
pirms 3 gadiem
Martin Dørum
293b05bade
lights are floats, range 0-1
pirms 3 gadiem
Martin Dørum
c9ce067e11
lighting changes
pirms 3 gadiem
Martin Dørum
b8fcf907d5
integrate lighting with swan
pirms 3 gadiem
Martin Dørum
569df98e5c
LightingThread -> LightServer
pirms 3 gadiem
Martin Dørum
102be7ec37
lighting system work
pirms 3 gadiem
Martin Dørum
262ca389fe
a kind of lighting effect
pirms 3 gadiem
Martin Dørum
b2fd4178df
new trait system, split Body into Body and Physics
pirms 4 gadiem
Martin Dørum
93ecc0a214
allow despawning entities
pirms 4 gadiem
Martin Dørum
9dfdf8541d
ridiculously fast relPost/chunkPos
pirms 4 gadiem
Martin Dørum
abc277b256
integrate tracy, cmake stuff, etc
pirms 4 gadiem
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
pirms 4 gadiem
Martin Dørum
976d9b4b9c
replace core::air with @::air
"@internal::" is also renamed to "@::" for libswan-internal stuff.
pirms 4 gadiem
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.
pirms 4 gadiem
Martin Dørum
24b8fdcd8d
more optimization
pirms 4 gadiem
Martin Dørum
08d7346d5b
optimization
pirms 4 gadiem
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)
pirms 4 gadiem
Martin Dørum
056579e6be
cave background stuff
pirms 4 gadiem
Martin Dørum
f6c5526b94
delete instead of compressing unmodified chunks
pirms 4 gadiem
Martin Dørum
ce70c058aa
mostly performance stuff
pirms 4 gadiem
Martin Dørum
656f558744
getEntsInArea
pirms 4 gadiem
Martin Dørum
3b4ce891fe
traits
pirms 4 gadiem
Martin Dørum
e6ecab47f9
readability
pirms 4 gadiem
Martin Dørum
4c88962ccc
breakBlock fix
pirms 4 gadiem
Martin Dørum
50497bf571
fixed a couple issues
pirms 4 gadiem
Martin Dørum
d06bede011
rendering
pirms 4 gadiem
Martin Dørum
432061954a
pre-convert pixel formats, other stuff
pirms 4 gadiem
Martin Dørum
5d9c63b36d
add operator<< to Vector2 and SRF
pirms 4 gadiem
Martin Dørum
2a016c2c5f
replace fprintf with log.h stuff
pirms 4 gadiem
Martin Dørum
c527655e79
almost ported to SDL
pirms 4 gadiem
Martin Dørum
401e069646
hey, this compiles now
pirms 4 gadiem
Martin Dørum
e71e20c6c5
WIP, rewriting stuff to use SDL instead of SFML
pirms 4 gadiem
Martin Dørum
3902a2d652
move Win into its own thing, make vector stuff constexpr
pirms 4 gadiem
Martin Dørum
ba28d348d0
despawning, add dt to tick(), etc
pirms 4 gadiem
Martin Dørum
597bc42abd
spawn ents in the middle of blocks
pirms 4 gadiem
Martin Dørum
63f39192e9
spawn_list_
pirms 4 gadiem
Martin Dørum
95ac54ddc3
make Swan::Vector2 a struct
pirms 4 gadiem
Martin Dørum
1a5988bfd9
bounding box
pirms 4 gadiem
Martin Dørum
92ef995116
visible entity, cmake stuff
pirms 4 gadiem
Martin Dørum
718281b35b
wow, that was many changes.
This should've been multiple commits, but hey, it's late.
pirms 4 gadiem
Martin Dørum
4ff0dbcc16
a bunch of SRF stuff, and use SRF for entity params
pirms 4 gadiem
Martin Dørum
c78891fe7f
Swan::Context
pirms 4 gadiem
Martin Dørum
294a3528b9
add the ability to compress chunks
pirms 4 gadiem