Martin Dørum
54b78a7bcf
get rid of everything SDL (except for SDL_image)
пре 2 година
Martin Dørum
b7b8dc8cc4
trees
пре 2 година
Martin Dørum
cbb913ecd5
support macos
пре 2 година
Martin Dørum
f1db1a121e
some redesign and getting rid of some warnings
пре 2 година
Martin Dørum
0627068018
delete cmake stuff
пре 2 година
Martin Dørum
6708ce6652
add meson build
пре 2 година
Martin Dørum
15f83881b1
background colors
пре 3 година
Martin Dørum
908e7be3b2
draw item stack entities
пре 3 година
Martin Dørum
69bd2e4adc
fix more style things
пре 3 година
Martin Dørum
f8ad8b808a
draw rect
пре 3 година
Martin Dørum
b04d30022a
make everything work with proper matrix stuff
пре 3 година
Martin Dørum
33eda68f12
correctly position some 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
d3ca166d2f
more lighting
пре 3 година
Martin Dørum
293b05bade
lights are floats, range 0-1
пре 3 година
Martin Dørum
86952836a5
a bit more lighting
пре 3 година
Martin Dørum
c77bfb3262
light stuff
пре 3 година
Martin Dørum
8f2e3578ea
lighting
пре 3 година
Martin Dørum
2cfa6b547f
make player emit light
пре 3 година
Martin Dørum
262ca389fe
a kind of lighting effect
пре 3 година
Martin Dørum
f040f51b04
fix PlayerEntity::get
пре 3 година
Martin Dørum
e20d10ee29
automatically center entity when spawning
пре 3 година
Martin Dørum
cc1c71717a
change InventoryTrait to new trait system
пре 4 година
Martin Dørum
b2fd4178df
new trait system, split Body into Body and Physics
пре 4 година
Martin Dørum
93ecc0a214
allow despawning entities
пре 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
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
d25a7f8458
nicer entity ctors
пре 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
be5ac63730
visuals
пре 4 година
Martin Dørum
bb1817ac7a
texture stuff
пре 4 година
Martin Dørum
9f6f2abd9b
deeper
пре 4 година
Martin Dørum
056579e6be
cave background stuff
пре 4 година
Martin Dørum
903774f7a7
caves
пре 4 година
Martin Dørum
ce70c058aa
mostly performance stuff
пре 4 година
Martin Dørum
3f4040720d
minor 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
5794938993
inventory stuff mainly
пре 4 година
Martin Dørum
6347a737b3
FORCE -> MOVE_FORCE
пре 4 година
Martin Dørum
18265a30e2
number tweakings etc
пре 4 година
Martin Dørum
702ad886af
fall down with greater gravity
пре 4 година
Martin Dørum
15abd13f12
better world gen
пре 4 година