Giter VIP home page Giter VIP logo

liero's People

Contributors

ahockersten avatar barnaba avatar emlai avatar gliptic avatar milleniumbug avatar timmermanv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

liero's Issues

Add icon

We need an icon that should be used both as an icon for the binary and as the icon for the window when running Liero. See discussion in #2 for suggestions on icon to use and requirements on it.

CMake unable to locate SDL2_image even when present

$ cmake -G 'Unix Makefiles' ..
CMake Error at CMakeLists.txt:7 (find_package):
  By not providing "FindSDL2_Image.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "SDL2_Image", but CMake did not find one.

  Could not find a package configuration file provided by "SDL2_Image" with
  any of the following names:

    SDL2_ImageConfig.cmake
    sdl2_image-config.cmake

  Add the installation prefix of "SDL2_Image" to CMAKE_PREFIX_PATH or set
  "SDL2_Image_DIR" to a directory containing one of the above files.  If
  "SDL2_Image" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
See also "/home/jose/tmp/liero/build/CMakeFiles/CMakeOutput.log".

SDL2_image however is installed:

pacman -Ql sdl2_image 
sdl2_image /usr/
sdl2_image /usr/include/
sdl2_image /usr/include/SDL2/
sdl2_image /usr/include/SDL2/SDL_image.h
sdl2_image /usr/lib/
sdl2_image /usr/lib/libSDL2_image-2.0.so.0
sdl2_image /usr/lib/libSDL2_image-2.0.so.0.2.2
sdl2_image /usr/lib/libSDL2_image.so
sdl2_image /usr/lib/pkgconfig/
sdl2_image /usr/lib/pkgconfig/SDL2_image.pc
sdl2_image /usr/share/
sdl2_image /usr/share/licenses/
sdl2_image /usr/share/licenses/sdl2_image/
sdl2_image /usr/share/licenses/sdl2_image/LICENSE

Code explanation

@ahockersten could you explain what exactly this code in worm.cpp doing?

if(reacts[RFDown] < 2)
				{
					if(reacts[RFUp] > 0)
					{
						if(reacts[RFLeft] > 0 || reacts[RFRight] > 0)
						{
							//Low or none push down,
							//Push up and
							//Push left or right

							pos.y -= itof(1);
							next.y = pos.y + vel.y;
							iNext.y = ftoi(next.y);

							calculateReactionForce(game, iNext.x, iNext.y, RFLeft);
							calculateReactionForce(game, iNext.x, iNext.y, RFRight);
						}
					}
				}

				if(reacts[RFUp] < 2)
				{
					if(reacts[RFDown] > 0)
					{
						if(reacts[RFLeft] > 0 || reacts[RFRight] > 0)
						{
							//Low or none push up,
							//Push down and
							//Push left or right

							pos.y += itof(1);
							next.y = pos.y + vel.y;
							iNext.y = ftoi(next.y);

							calculateReactionForce(game, iNext.x, iNext.y, RFLeft);
							calculateReactionForce(game, iNext.x, iNext.y, RFRight);
						}
					}
				}
			}

Is it special code for climbing? If not, do you know part of code, which handle moving by ascending surface?
Very appreciate any information. Thanks for great port of awesome game!

New map tool or reading image files directly

There needs to be a way to generate maps. There are a few old and perfectly ok options for this, but they are quickly becoming outdated.

I see a few alternatives:

  1. Find an existing tool and recommend that (Liero Hellhole has several)
  2. Create or port something that can convert existing bitmaps to Liero levels
  3. Enable Liero to read image files of the correct size/format directly

To complicate option 3 there needs to be a way to get an image of the map as it is displayed inside Liero, which is not the same as the source image (since it applies textures and whatnot).

I would really like to have something like option 3 for ease of use and for easy testing of new maps.

While doing this, it's worth considering expanding the scope of maps to include stuff like using all available colors and adding new types of terrain (for example, while there is terrain that can be shot through but not moved through, I believe there's no terrain that can be moved through but not shot through).

game crashes when loading some TCs with "broken" soundpacks

Hey, not sure if this is the right place, but I just wanted to let you know about one issue which I discovered about Liero orbmit edition.
Some Liero soundpacks (.snd files) are missing (mostly intentionally) single sounds, e.g. a soundpack in Liero TC called Tank Wars II by Runestorm is missing DROPSHELL and BURNER sound. However, you can still run such TCs normally (either using 1.36 openliero.exe or without it, e.g. when you run liero.exe in dosbox) and this has no impact on the game - even if you set such "empty" sound as a launch sound for any weapon, the game will not crash.
However, when you convert such TC (with such "incomplete" soundpack) to the 1.38+ orbmit version, the game will crash when you try to open this TC in the game. After conversion, the "missing" sound is in fact represented as empty .wav file in the TC/X/sounds subdirectory, but the game cannot read it and the game crashes (with no "warning message" printed).
PS. big respect to you guys for making Liero still alive & developing it, you are the best!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.