1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-20 23:47:16 -05:00

464 Commits

Author SHA1 Message Date
Ziemas
0475a11512 Toggle tile display in map test with F7 ()
* Toggle tile display in map test with F7
* Sub-tile display
Cycle through tile display modes with F7
2019-11-15 09:04:27 -05:00
Myles
b9209541c8 Closes Issue#176 () 2019-11-14 23:55:51 -05:00
Tim Sarbin
b97bf6353d
Added inventory objects. () 2019-11-14 22:20:01 -05:00
Ziemas
ea134afe90 Render to center of subtile () 2019-11-13 22:26:52 -05:00
sclaire-1
3abfa51b8f Edit README.md ()
The about this project section, the second paragraph has been edited to improve flow. There was one spelling error as well.
2019-11-13 22:16:02 -05:00
Ziemas
e2bee09469 Place objects according to sub-cell () 2019-11-13 20:31:47 -05:00
liberodark
f2ac62bf18 Update run.sh ()
* Update run.sh
2019-11-13 15:54:26 -05:00
Tim Sarbin
da9b86c679
Fixed crash on 0 animation speed entities. () 2019-11-13 15:08:09 -05:00
Averrin
78a70c2d2b add map switcher () 2019-11-13 14:26:42 -05:00
TehGoat
055fcd72ed Idle animation and hover gets out of sync () 2019-11-13 12:56:54 -05:00
TehGoat
358fa1481c Modified hero animation speed () 2019-11-13 12:32:17 -05:00
Averrin
f83ab90d96 Add CONTRIBUTORS file content to credits screen () 2019-11-13 11:56:45 -05:00
liberodark
738a203325 Update go.yml () 2019-11-13 08:49:58 -05:00
Tim Sarbin
2e05406f05
Update go.yml 2019-11-13 08:32:08 -05:00
Tim Sarbin
13cfb3d0c4
Update go.yml 2019-11-13 08:09:24 -05:00
Tim Sarbin
59dd184038
Created pull request action. 2019-11-13 08:08:39 -05:00
Tim Sarbin
a8171145f9
Started work on gameplay scene. () 2019-11-13 00:31:52 -05:00
Tim Sarbin
4fa66988d4
Added the scrollbar. () 2019-11-12 23:44:04 -05:00
Robin Eklind
12f8ca1004 d2enum: update readme to mention go generate () 2019-11-12 17:36:30 -05:00
liberodark
bdda07f7e5 No need this option () 2019-11-12 08:18:08 -05:00
Robin Eklind
e1d9f676cf fix permissions on .OpenDiablo2 directory () 2019-11-12 08:15:50 -05:00
Tim Sarbin
a6a9434267
Added more functionality to character select screen. () 2019-11-11 23:48:55 -05:00
Tim Sarbin
f81eb5764d
More sprite optimizations. () 2019-11-10 20:44:51 -05:00
Tim Sarbin
352ff81b72
Fixed texture atlas. Added GC debugging. () 2019-11-10 20:13:10 -05:00
Tim Sarbin
9b8ce0cccf Revert "Another sprite optimization experiment. ()"
This reverts commit a9136eda0a2702fe366c7cea6838887e61ddb67f.
2019-11-10 17:58:36 -05:00
Tim Sarbin
a9136eda0a
Another sprite optimization experiment. ()
* Attempting to use normal ebiten frames, but lazily loading them.
2019-11-10 17:52:45 -05:00
Ziemas
1ec7d2379e Fix checkboxes ()
And change the names of things because it was confusing me.
2019-11-10 17:52:30 -05:00
Tim Sarbin
3f01ad09ae
Renamed files to lowercase. () 2019-11-10 17:36:25 -05:00
Ziemas
d4d3fdfad3 Checkboxes! ()
And add them to the hero class scene.
2019-11-10 17:17:42 -05:00
Tim Sarbin
5d5009208b
Renamed all files to proper go conventions. () 2019-11-10 14:06:05 -05:00
Tim Sarbin
f156475731
Added text entry. Fixed performance issue. Added error checking. () 2019-11-10 12:28:41 -05:00
Tim Sarbin
e8292e9c42
More optimizations and cleanup. () 2019-11-10 10:44:13 -05:00
Tim Sarbin
f2b1bdfba4
More package cleanup. () 2019-11-10 08:51:02 -05:00
q3cpma
7370e12b53 Improve run.sh: ()
* POSIX sh
* simpler distro detection
* don't create functions for stuff used only once
* add Gentoo (portage) support
* handle other distros gracefully
* ask before stealthily installing Go
* compile even when Go is already installed
2019-11-10 07:47:55 -05:00
Tim Sarbin
b41f7f4dab
Restructured everything. () 2019-11-10 03:36:53 -05:00
liberodark
46e163bc38 Create run.sh ()
* Create run.sh
2019-11-10 01:32:59 -05:00
Robin Eklind
44a6a5672c common: convert objLookupRaw into a struct ()
Ain't noone got time for that :)

So, we automated it:

a.sh: script automating the work
a.go: tool to pretty print the parsed ObjectLookups
b.go: output of a.go
c.go: compare before and after rewrite to ensure they are identical

a.go: https://play.golang.org/p/P8G1byhzMtY
b.go: output of `go run a.go`
c:go: https://play.golang.org/p/q8LXBbBhkp5

a.sh contents follows below:

	#!/bin/bash

	# go get golang.org/x/tools/cmd/goimports
	# go get github.com/mewkiz/cmd/sar

	echo -n -e "//+build ignore\n\npackage common\n\nvar ObjectLookups = " > b.go
	go run a.go >> b.go

	sar -i '[A-Za-z_][A-Za-z0-9_]*:[\"][\"],' '' b.go
	sar -i 'Type:1,' 'Type:ObjectTypeCharacter,' b.go
	sar -i 'Type:2,' 'Type:ObjectTypeItem,' b.go
	sar -i 'common.ObjectLookupRecord' 'ObjectLookupRecord' b.go
	goimports -w b.go
2019-11-10 01:29:34 -05:00
Robin Eklind
b0ca8138bd common: use stringer and string2enum tools to convert back and forth between enum and string () 2019-11-10 01:22:36 -05:00
Tim Sarbin
3555578c0e
Added support for all object layers. () 2019-11-09 23:37:02 -05:00
Robin Eklind
09e713b1cb common: generate atlas in y rather than x direction ()
This lets us generate atlases that are more "square"ish,
and thus less likely to hit the graphics card boundaries
for texture dimensions.

Fixes .
2019-11-09 23:33:09 -05:00
Ziemas
948ca1fc1a Check if MPQ file was loaded before reading. ()
And if it wasn't then tell the user which one instead of crashing.
2019-11-09 18:57:55 -05:00
Ziemas
4aba58eb28 Vsync and FPS display toggles. ()
They now toggle more reliably as well as work globally.
2019-11-09 18:56:45 -05:00
Ziemas
ebff54cfba Use delta time for scene updates. ()
* Use delta time when updating scenes.
Delta time is in seconds and capped to 1/10th.
* Show FPS and VSYNC status in the bottom left corner.

Fixes 
2019-11-09 16:17:01 -05:00
Tim Sarbin
c51e464676
More sprite optimizations () 2019-11-09 01:13:49 -05:00
Tim Sarbin
ed88d0e00d
Test updates. MPQ file name changes. ()
* Modified path logic to hopefully fix some issues
2019-11-08 19:52:49 -05:00
Tim Sarbin
7859b69da6
Performance Enhancements ()
* More optimizations. Fixed button rendering issue.
2019-11-08 16:50:33 -05:00
Tim Sarbin
a105bb390a
More optimizations. Fixed button rendering issue. () 2019-11-08 11:05:51 -05:00
Tim Sarbin
26efc4c05c
Fixed some performance issues with binary reads. Moved config to its own spot. () 2019-11-08 01:37:21 -05:00
Tim Sarbin
920a4f51b0
Initial NPC support ()
* Started adding support for NPCs. Added Monstats dictionary.
2019-11-07 23:44:03 -05:00
Robin Eklind
4cd1eae21a core: rename mpq variable to archive to avoid confusion with mpq package ()
Follow-up of .
2019-11-07 23:36:56 -05:00