Giter VIP home page Giter VIP logo

luastgplus's Introduction

LuaSTGPlus

A Cross-Platform Danmaku Game Engine.

Architectures Platforms License Stars Forks

Build Windows

Working in progress

See documentation for more details.

luastgplus's People

Contributors

9chu avatar demonese avatar xiliusha avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luastgplus's Issues

A small improvement

lua_pushinteger(L, a + static_cast<fInt>(p->GetRandUInt(::max(static_cast<fuInt>(b - a), 0U))));

::max is not needed here:

lua_pushinteger(L, a + static_cast<fInt>(p->GetRandUInt(static_cast<fuInt>(b - a))));

But I think this is clearer:

lua_pushinteger(L, ::min(a, b) + p->GetRandUInt(::abs(b - a)));

building problem

Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'fcyIO/fcyStream.h': No such file or directory LuaSTGPlus c:\users\ch3coohlink\desktop\luastgplus\luastgplus\global.h 30

cmake时Patch出错:patch does not apply

win10,64位, clone最新仓库. 使用VS2019 打开文件夹方式打开项目. cmake解决package安装后遇到了如下报错.
1> [CMake] [2/7] Performing patch step for 'mojoal-populate'
1> [CMake] FAILED: mojoal-populate-prefix/src/mojoal-populate-stamp/mojoal-populate-patch
1> [CMake] error: corrupt patch at line 11
1> [CMake] ninja: build stopped: subcommand failed.

我要修改patch吗? 该怎么改?
我的mojoal.c:
` #include <math.h> //11行
#include <float.h>

/* Unless compiling statically into another app, we want the public API
to export on Windows. Define these before including al.h, so we override
its attempt to mark these as dllimport. */
#if defined(_WIN32) && !defined(AL_LIBTYPE_STATIC)
#define AL_API __declspec(dllexport)
#define ALC_API __declspec(dllexport)
#endif

#ifndef M_PI`

An Issue About LuaSTGPlus Legacy

您好,@9chu 先生,恕我直言,legacy分支使用的是BSD Lisence,但是它没有说明是哪个BSD许可证,git存储库的legacy分支也没有附带许可协议。虽然所有的BSD许可证都是开源许可证,但是我觉得既然2.0使用的是MIT许可证的话,那是不是应该给所有的分支更换成同样的许可协议不是更好吗?希望能得到您的回复。

Redundant code

// 检查边碰撞
if (fabs(tCircleCenterProjValue[0] - tProjValue[0]) < tAxisLen[0] / 2.f)
{
if (fabs(tCircleCenterProjValue[1] - tProjValue[1]) < tAxisLen[1] / 2.f + R)
return true;
else
return false;
}
else if (fabs(tCircleCenterProjValue[1] - tProjValue[1]) < tAxisLen[1] / 2.f)
{
if (fabs(tCircleCenterProjValue[0] - tProjValue[0]) < tAxisLen[0] / 2.f + R)
return true;
else
return false;
}

A (little bit) better one:

// 检查边碰撞
if (fabs(tCircleCenterProjValue[0] - tProjValue[0]) < tAxisLen[0] / 2.f)
{
	return fabs(tCircleCenterProjValue[1] - tProjValue[1]) < tAxisLen[1] / 2.f + R;
}
else if (fabs(tCircleCenterProjValue[1] - tProjValue[1]) < tAxisLen[1] / 2.f)
{
	return fabs(tCircleCenterProjValue[0] - tProjValue[0]) < tAxisLen[0] / 2.f + R;
}

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.