Martin Dørum
7b477216e7
chunk rendering
3 years ago
Martin Dørum
9989e7f49b
better matrix operations
3 years ago
Martin Dørum
fb898427d9
hey, something draws to the screen now
3 years ago
Martin Dørum
447d4e8d39
libswan and core.mod now compiles
3 years ago
Martin Dørum
de5e49e700
rewrite mod and asset loading logic
3 years ago
Martin Dørum
0db704582d
make style consistent
3 years ago
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 years ago
Martin Dørum
e9c9c862e8
mods are responsible for creating the mod object now, not just init
4 years ago
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 years ago
Martin Dørum
056579e6be
cave background stuff
4 years ago
Martin Dørum
bcc6e9f421
make clang-tidy happier
4 years ago
Martin Dørum
a6267cd1ae
zooming, and nicer input handling
4 years ago
Martin Dørum
c6ffa3c7d5
basic imgui integration (now with SDL)
4 years ago
Martin Dørum
a4652732ab
fix mod dynlib lifetime issues
4 years ago
Martin Dørum
f22b1e47e7
mod loading and resource stuff
4 years ago
Martin Dørum
2a016c2c5f
replace fprintf with log.h stuff
4 years ago
Martin Dørum
c527655e79
almost ported to SDL
4 years ago
Martin Dørum
401e069646
hey, this compiles now
4 years ago
Martin Dørum
e71e20c6c5
WIP, rewriting stuff to use SDL instead of SFML
4 years ago
Martin Dørum
e7437ef94c
randomness
4 years ago
Martin Dørum
3902a2d652
move Win into its own thing, make vector stuff constexpr
4 years ago
Martin Dørum
362adf6171
clang-tidy
4 years ago
Martin Dørum
ba28d348d0
despawning, add dt to tick(), etc
4 years ago
Martin Dørum
95ac54ddc3
make Swan::Vector2 a struct
4 years ago
Martin Dørum
8b028cfdd2
new input handling stuff
4 years ago
Martin Dørum
c78891fe7f
Swan::Context
4 years ago
Martin Dørum
21926981f9
items
4 years ago
Martin Dørum
294a3528b9
add the ability to compress chunks
4 years ago
Martin Dørum
45870840db
some restructuring, and break blocks
4 years ago
Martin Dørum
e01584038f
get tile at mouse position
4 years ago
Martin Dørum
11406a6680
use INVALID_* rather than null
4 years ago
Martin Dørum
6a19a4cc46
a bunch of stuff ok
4 years ago
Martin Dørum
da5d36d49e
more changes
4 years ago
Martin Dørum
9c3a2496e4
entities
4 years ago
Martin Dørum
b2a0559818
entities, and changes to worldgen
4 years ago
Martin Dørum
7579d04fb6
world gens and a bunch of stuff
4 years ago
Martin Dørum
78bd1112be
basic collision
4 years ago
Martin Dørum
5bbe431f1b
almost ready to draw chunks!
4 years ago
Martin Dørum
1ebc165245
cmake
4 years ago
Martin Dørum
19293a67b2
libswan, core mod, etc
4 years ago