Giter Site home page Giter Site logo

ludum-dare-37's Introduction

Final Boss

Ludum Dare 37 entry

ludum-dare-37's People

Contributors

karai17 avatar shakesoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ludum-dare-37's Issues

Make text look smoother

The cutscene text looks too blurry. This patch fixes it:

diff --git a/libs/dialog.lua b/libs/dialog.lua
index 6275fbb..cff4a8c 100644
--- a/libs/dialog.lua
+++ b/libs/dialog.lua
@@ -93,11 +93,11 @@ function dialog:_box(cx,cy,text)
 	--left
 	love.graphics.draw(dialog.img.edge,x-p,y+h,-math.pi/2,h,1)
 
-	love.graphics.printf(text,x+tpad,y+tpad,max_width,"left")
+	love.graphics.printf(text,math.floor(0.5+x+tpad),math.floor(0.5+y+tpad),max_width,"left")
 
 	local shadow = 2
 	love.graphics.setColor(0,0,0,31)
-	love.graphics.printf(text,x+tpad+shadow,y+tpad+shadow,max_width,"left")
+	love.graphics.printf(text,math.floor(0.5+x+tpad+shadow),math.floor(0.5+y+tpad+shadow),max_width,"left")
 
 	love.graphics.setColor(old_color)
 	love.graphics.setFont(old_font)

Crash in midgame

I hacked the game to let me keep playing without dying in the first minute. Near the end, I got this:

Error: libs/cpml/modules/quat.lua:210: 'struct 162' has no member named 'w'
stack traceback:
        libs/cpml/modules/quat.lua:210: in function 'dot'
        libs/cpml/modules/quat.lua:337: in function 'slerp'
        src/systems/ai.lua:73: in function 'process'
        libs/tiny.lua:325: in function 'update'
        libs/tiny.lua:774: in function 'update'
        src/scenes/play.lua:528: in function 'update'
        conf.lua:472: in function <conf.lua:298>
        [C]: in function 'xpcall'

This happened twice at two very different points of the game. Another time around, I could beat the game without problems, so it's kind of intermittent.

Let the user resize the window

I don't know if the window is resizable during midgame, but since the mouse is captured, it doesn't really matter. However, it's resizable while not playing, and it's useful to resize it because, for example, setting fullscreen on and off leaves the window with the fullscreen size and it can't be shrunk again to normal. I didn't see any issues with doing so.

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.