I've rewritten the game states using tables instead of if-else'es
I agree that this topic is important and should be covered.
In the end, I've included it into the chapter 2, right after the "straightforward gamestates" part.
Search found 43 matches
- Sat Feb 11, 2017 9:41 am
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
- Fri Jan 27, 2017 5:26 pm
- Forum: General
- Topic: How to promote LOVE game?
- Replies: 6
- Views: 4641
Re: How to promote LOVE game?
I think promoting games is hard, and promoting gamedev tutorials or tools is even harder. In reality, Unity has become the defacto standard and 2D games using Lua is a tiny niche in comparison. Of course, good marketing requires time and skill, just as good sound effects, good graphics and code do....
- Thu Jan 26, 2017 4:52 pm
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.
The basic idea is to store the "current state" as a reference to a table - then you call functions in that table. Yes, I have been thinking to use such an approach (after all, initially I've used hump.gamestates, which does something similar). But in the end, I've decided to postpone it t...
- Wed Jan 25, 2017 8:39 pm
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.
I've finished rewriting the text for the chapter 2. It introduces simple gamestates, basic graphics and sound. Chapter 2: Common Features 1. Splitting Code into Several Files 2. Loading Levels from Files 3. Straightforward Gamestates 4. Basic Tiles 5. Different Brick Types 6. Basic Sound 7. Game Ove...
- Wed Jan 25, 2017 8:24 pm
- Forum: General
- Topic: How to promote LOVE game?
- Replies: 6
- Views: 4641
How to promote LOVE game?
Hey! I've been writing a tutorial series on making an Arkanoid-type game and I think it has come to a point where I can start to promote it a bit more actively. So far I've only posted announcements on this forum ( newer , older ) and on reddit/love2d ( newer , older ). According to Github traffic, ...
- Fri Jan 13, 2017 11:34 pm
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.
The functions "collisions.check_rectangles_overlap", "collisions.ball_platform_collision", etc look practically identical. I feel that these can be consolidated into a single function. ... Check out my collision tutorial at: http://2dengine.com/doc/gs_collision.html One simplifi...
- Fri Jan 06, 2017 2:34 pm
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.
Hey! How's the New Year going? The tutorial has been split in 3 chapters. The idea is following: Chapter 1 describes how to build a prototype for an Arkanoid-type game in the most straightforward way, without relying too much on any external libraries or advanced language features. Chapter 2 shows h...
- Wed Dec 28, 2016 7:19 am
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.
but the ball gets ridiculously fast very quickly. I can reproduce this if I try to hit the ball against the wall at a very low angle (i.e. almost aligned with the wall) which I always try because I want to get the ball up and behind the brick (quickest way to win arkanoid, I believe). So I go up to...
- Sat Dec 24, 2016 12:45 pm
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.
I understand, all I'm saying is that setfenv/_ENV is not the 'typical' way that most Lua modules are written. The majority of the lib/modules you'll find in the wild are composed of a table with some functions. Take a look the HC code, for example. The Lua manual changes and seems to be more about ...
- Thu Dec 22, 2016 5:39 pm
- Forum: Games and Creations
- Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
- Replies: 68
- Views: 30444
Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.
Sorry for the topic hijack, noway! No problem. It's interesting to follow. Besides, it keeps the topic up :megagrin: These are not mistakes, but it just looks like you're coming from a language other than Lua: Indeed, I don't have much experience with Lua, and so I'm unaware of some of the common p...