No description
Find a file
Monster Iestyn 386fec037f Merge branch 'lua-more-stuff' into 'master'
Lua more stuff

More new Lua features and fixes:
* Most Lua functions that deal with stuff that exists only in levels now should spout Lua errors instead of crashing the game if you try to use them outside of levels. Likewise, accessing any of the tables that contain level-only stuff (players, sectors, lines, etc etc) spouts Lua errors too outside of levels.
* `userdataType(variable)` now exists: this function simply returns the type of the userdata variable given as a string (e.g. `userdataType(players[0])` returns "player_t", `userdataType(sectors[0])` returns "sector_t"). This also includes "minor" userdata types for array members of other userdata types, such as .powers of player_t variables or .lines of sector_t variables (which would give the strings "player_t.powers" and "sector_t.lines" respectively).
* The Lua hook "MobjMoveBlocked" now exists: functions for this hook are called whenever a mobj attempts to move horizontally but is blocked by a wall or solid mobj (or whatever else can cause P_TryMove to return false, assuming it doesn't remove the mobj). In theory this hook could be very useful for behaviour such as sliding or bouncing off walls without the need of flags like MF_SLIDEME or MF_BOUNCE etc. Format for use is just like most generic mobj hooks: `addHook("MobjMoveBlocked", functionname, MT_OBJECTTYPE)`, where `functionname` is a function that takes a single mobj_t argument.

See MonsterIestyn/lua-more-stuff on the FTP for a test exe (srb2win-lua-more-stuff.exe) and some test scripts for the above changes.

See merge request !67
2017-03-13 14:29:35 -04:00
android
assets
bin
cmake/Modules
debian readme.txt dupilcated, also incorrect 2016-12-14 15:07:48 -05:00
doc
extras
libs
objs
src Merge branch 'lua-more-stuff' into 'master' 2017-03-13 14:29:35 -04:00
tools
.gitattributes
.gitignore
.travis.yml travis: cut down on osx builds 2016-08-18 19:38:21 -04:00
Android.mk
appveyor.yml appveyor: disable command output 2017-03-12 21:17:07 -04:00
CMakeLists.txt Update version number 2017-01-15 18:49:33 +00:00
comptime.bat
comptime.mk
comptime.props
comptime.sh
cpdebug.mk
Doxyfile
LICENSE
README.md Make disclaimer H2 instead of H3 2016-09-04 21:54:11 +01:00
srb2-vc9.sln
srb2-vc10.sln
SRB2.cbp Updated SRB2.cbp to (presumably) handle lua_blockmaplib.c correctly 2017-01-16 15:43:27 +00:00
Srb2.dev
srb2.png
SRB2_common.props
SRB2_Debug.props
SRB2_Release.props

Sonic Robo Blast 2

Build status Build status

Sonic Robo Blast 2 is a 3D Sonic the Hedgehog fangame based on a modified version of Doom Legacy.

Dependencies

  • NASM (x86 builds only)
  • SDL2 (Linux/OS X only)
  • SDL2-Mixer (Linux/OS X only)
  • libupnp (Linux/OS X only)
  • libgme (Linux/OS X only)

Warning: 64-bit builds are not netgame compatible with 32-bit builds. Use at your own risk.

Compiling

See SRB2 Wiki/Source code compiling

Disclaimer

Sonic Team Junior is in no way affiliated with SEGA or Sonic Team. We do not claim ownership of any of SEGA's intellectual property used in SRB2.