Martin Dørum
cbb913ecd5
support macos
2 лет назад
Martin Dørum
69bd2e4adc
fix more style things
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
0db704582d
make style consistent
3 лет назад
Martin Dørum
293b05bade
lights are floats, range 0-1
3 лет назад
Martin Dørum
c77bfb3262
light stuff
3 лет назад
Martin Dørum
8f2e3578ea
lighting
3 лет назад
Martin Dørum
262ca389fe
a kind of lighting effect
3 лет назад
Martin Dørum
e20d10ee29
automatically center entity when spawning
3 лет назад
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
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
056579e6be
cave background 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
77a9aca716
slowly but surely approaching feature parity
4 лет назад
Martin Dørum
f22b1e47e7
mod loading and resource stuff
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
0b46a4b423
a couple small item fixes
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
21926981f9
items
4 лет назад
Martin Dørum
e12ba020fa
changed tile registration and stuff
4 лет назад
Martin Dørum
fa91b4ad83
remove TileMap
4 лет назад
Martin Dørum
6a19a4cc46
a bunch of stuff ok
4 лет назад
Martin Dørum
9c3a2496e4
entities
4 лет назад