Martin Dørum
9eeb30960f
somewhat synchronize light server stuff
pirms 3 gadiem
Martin Dørum
15f83881b1
background colors
pirms 3 gadiem
Martin Dørum
164d7bde06
compute tile pos
pirms 3 gadiem
Martin Dørum
b7347d749d
some small stuff
pirms 3 gadiem
Martin Dørum
447d4e8d39
libswan and core.mod now compiles
pirms 3 gadiem
Martin Dørum
de5e49e700
rewrite mod and asset loading logic
pirms 3 gadiem
Martin Dørum
0db704582d
make style consistent
pirms 3 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
e9c9c862e8
mods are responsible for creating the mod object now, not just init
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
056579e6be
cave background stuff
pirms 4 gadiem
Martin Dørum
a6267cd1ae
zooming, and nicer input handling
pirms 4 gadiem
Martin Dørum
f22b1e47e7
mod loading and resource stuff
pirms 4 gadiem
Martin Dørum
c527655e79
almost ported to SDL
pirms 4 gadiem
Martin Dørum
e782d5b1af
more progress on sfml -> sdl
pirms 4 gadiem
Martin Dørum
e71e20c6c5
WIP, rewriting stuff to use SDL instead of SFML
pirms 4 gadiem
Martin Dørum
362adf6171
clang-tidy
pirms 4 gadiem
Martin Dørum
ba28d348d0
despawning, add dt to tick(), etc
pirms 4 gadiem
Martin Dørum
8b028cfdd2
new input handling stuff
pirms 4 gadiem
Martin Dørum
45870840db
some restructuring, and break blocks
pirms 4 gadiem
Martin Dørum
e01584038f
get tile at mouse position
pirms 4 gadiem
Martin Dørum
531ef29c4a
styling stuff, adding some privates, etc
pirms 4 gadiem
Martin Dørum
b2a0559818
entities, and changes to worldgen
pirms 4 gadiem
Martin Dørum
7579d04fb6
world gens and a bunch of stuff
pirms 4 gadiem
Martin Dørum
78bd1112be
basic collision
pirms 4 gadiem
Martin Dørum
5bbe431f1b
almost ready to draw chunks!
pirms 4 gadiem
Martin Dørum
19293a67b2
libswan, core mod, etc
pirms 4 gadiem