Search found 55 matches
- Sun Nov 22, 2015 8:52 am
- Forum: Games and Creations
- Topic: Space Multiplication
- Replies: 1
- Views: 1351
Space Multiplication
Hi there! I've finally finished something - it's very small, but finished nonetheless (except that a game is never truly finished) Space Multiplication is an educational game to teach your kids (or you) multiplication tables. It's intended for kids but I've seen adults having fun with it so I hope y...
- Mon Oct 26, 2015 6:18 pm
- Forum: Support and Development
- Topic: Tile based collision for top down game?
- Replies: 5
- Views: 3050
Re: Tile based collision for top down game?
You should use bump - you won't write anything better anytime soon (no offence - I neither). But, if you want to write something on your own (educational thing) here are some tips for start (although it might be better to skip those and go straight to bump as my code below lack quality :)): - first ...
- Tue Oct 06, 2015 5:17 pm
- Forum: Support and Development
- Topic: How to qucikly extract quads from a sprite sheet?
- Replies: 5
- Views: 3638
Re: How to qucikly extract quads from a sprite sheet?
you can introduce some automated spritesheet generator into your pipeline google suggests this one but I have no idea if it's any good: https://www.codeandweb.com/texturepacker (edit: didn't noticed but it looks like it's a paid app - you consider if worth it for 150 images, in case it's not I suppo...
- Tue Oct 06, 2015 7:17 am
- Forum: Support and Development
- Topic: Need Help, My Map wont draw!
- Replies: 2
- Views: 1581
Re: Need Help, My Map wont draw!
looks like you use an outdated library with a newer version of love Feb 16, 2014: https://github.com/Kadoba/Advanced-Tiled-Loader/commit/ae192494da7731f4d6c6f3d7053539083a569469 there is no drawq in 0.9.* either: - upgrade the lib - replace the lib (as it's "no longer being actively developed&q...
- Mon Oct 05, 2015 1:27 pm
- Forum: Support and Development
- Topic: Bullet Generation
- Replies: 2
- Views: 1892
Re: Bullet Generation
I'm not 100% sure if this is what you have a problem with but as far as I can see you never call createBullets() adding: function love.mousepressed() createBullets() -- actually it creates just one, shouldn't it be renamed to createBullet() ? end let me create (and draw) them although they still not...
- Sun Sep 27, 2015 7:06 pm
- Forum: Support and Development
- Topic: Trying to make my own menu(issues)
- Replies: 3
- Views: 2040
Re: Trying to make my own menu(issues)
you never load the menu again (only changing state) and you have some initialization (for player) in the LOAD_MENU in case of State == "Playing" so try: function StateChanger(dt) if love.keyboard.isDown("1") and State == "Menu" then State = "Playing" LOAD_MENU...
- Sat Jun 27, 2015 5:35 pm
- Forum: Support and Development
- Topic: TraceLine acting like a box
- Replies: 1
- Views: 1191
Re: TraceLine acting like a box
Take a look into bump.lua from kikito - It's written in a simple and clean manner (better then anything i could produce), I recommend reading the whole thing - very interesting :) You can borrow this function from there: -- This is a generalized implementation of the liang-barsky algorithm, which al...
- Fri Jun 26, 2015 7:27 am
- Forum: Support and Development
- Topic: Problem with scoping (different files)
- Replies: 5
- Views: 2887
Re: Problem with scoping (different files)
First of all: It's simple now, I'd move forward. But if you feel like working on menu today (instead of let's say - gameplay) then instead of menu object (self) you could pass game to the interface, or you could even make game a global variable[1]. The issue there is that you don't know if game is t...
- Thu Jun 25, 2015 7:23 pm
- Forum: Support and Development
- Topic: Problem with scoping (different files)
- Replies: 5
- Views: 2887
Re: Problem with scoping (different files)
You have misspelled initialize in interface.lua - when you fix it, it'll work
- Thu Jun 25, 2015 6:01 am
- Forum: Support and Development
- Topic: Problem with scoping (different files)
- Replies: 5
- Views: 2887
Re: Problem with scoping (different files)
One of the ways might be something like that (direct one to one relation between the interface and the menu): function Menu:enteredState() self.interface = gui.Interface:new(self):loadFromFile("menu/main.lua") -- gui.Interface:new(self, "menu/main.lua") ? end local INTERFACE = cl...