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
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
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 лет назад
Martin Dørum
056579e6be
cave background stuff
4 лет назад
Martin Dørum
f6c5526b94
delete instead of compressing unmodified chunks
4 лет назад
Martin Dørum
ce70c058aa
mostly performance stuff
4 лет назад
Martin Dørum
656f558744
getEntsInArea
4 лет назад
Martin Dørum
3b4ce891fe
traits
4 лет назад
Martin Dørum
e6ecab47f9
readability
4 лет назад
Martin Dørum
4c88962ccc
breakBlock fix
4 лет назад
Martin Dørum
50497bf571
fixed a couple issues
4 лет назад
Martin Dørum
d06bede011
rendering
4 лет назад
Martin Dørum
432061954a
pre-convert pixel formats, other stuff
4 лет назад
Martin Dørum
5d9c63b36d
add operator<< to Vector2 and SRF
4 лет назад
Martin Dørum
2a016c2c5f
replace fprintf with log.h 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
ba28d348d0
despawning, add dt to tick(), etc
4 лет назад
Martin Dørum
597bc42abd
spawn ents in the middle of blocks
4 лет назад
Martin Dørum
63f39192e9
spawn_list_
4 лет назад
Martin Dørum
95ac54ddc3
make Swan::Vector2 a struct
4 лет назад
Martin Dørum
1a5988bfd9
bounding box
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 лет назад
Martin Dørum
c78891fe7f
Swan::Context
4 лет назад
Martin Dørum
294a3528b9
add the ability to compress chunks
4 лет назад
Martin Dørum
660c6f9f7a
way faster chunk rendering
4 лет назад
Martin Dørum
14f2c39cd2
only draw chunks around the player
4 лет назад
Martin Dørum
45870840db
some restructuring, and break blocks
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
3e07ceb91f
better collision
4 лет назад
Martin Dørum
6a19a4cc46
a bunch of stuff ok
4 лет назад
Martin Dørum
cb83477950
more chunk gen stuff, world gen stuff, etc
4 лет назад
Martin Dørum
33493a2083
ints -> TilePos and ChunkPos
4 лет назад
Martin Dørum
da5d36d49e
more changes
4 лет назад
Martin Dørum
531ef29c4a
styling stuff, adding some privates, etc
4 лет назад
Martin Dørum
1a8bb73ec8
bug fixes
4 лет назад
Martin Dørum
9c3a2496e4
entities
4 лет назад
Martin Dørum
b2a0559818
entities, and changes to worldgen
4 лет назад
Martin Dørum
aac335db3b
chunk stuff
4 лет назад
Martin Dørum
9750fb49fa
stuff
4 лет назад