LÖVE-based RTS

Show off your games, demos and other (playable) creations.
User avatar
zapwow
Prole
Posts: 48
Joined: Fri Oct 24, 2008 11:37 pm

LÖVE-based RTS

Post by zapwow »

I've finally settled on a long-term project to work on: an RTS built in LÖVE/lua. I expect to learn a lot from this.

Basic goals include:
  • Different unit types
    Buildings
    Obstacles/pathfinding
    Half-decent graphics
Some fun ideas I'd like to include are:
  • Genetic programming for units, including their structure, appearance and abilities
    Multiplayer support
... but those are far off.

I'll post my progress here as often as I can, to keep myself motivated and to keep helpful feedback coming in. I've also acquired a couple books to guide me, including one that has already been helpful,"Programming Game AI by example". I want to do this right, so I'm open to any suggestions.

This is, of course, all being done in what spare time I have after school and life. I'm supposed to graduate from uni in June so don't expect much before then.
User avatar
zapwow
Prole
Posts: 48
Joined: Fri Oct 24, 2008 11:37 pm

Re: LÖVE-based RTS

Post by zapwow »

Here's what I have accomplished so far:
  • Basic camera movement
    Create/destroy units with keyboard
    Select, move units with mouse
    screen-clipping, self-culling units
rtsScreen1.JPG
rtsScreen1.JPG (107.17 KiB) Viewed 11370 times
Attachments
rts_0.05.love
(44.24 KiB) Downloaded 669 times
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LÖVE-based RTS

Post by bartbes »

Yay! Moving triangles! ;)
I hope this turns out like a nice RTS, so.. have fun coding!
User avatar
Skofo
Party member
Posts: 146
Joined: Mon Dec 22, 2008 10:55 pm

Re: LÖVE-based RTS

Post by Skofo »

Oh man, this looks really cool.

Looking forward to seeing more of it! :ultraglee:
Working on: Viator
Need a 64-bit Debian package for LÖVE? Here it is!
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: LÖVE-based RTS

Post by qubodup »

This looks very good! The triangles are very sexy! (Self-made?)

So far I am reminded of following games: Qonk (open source), Liquid War (open source) and Homeworld (proprietary).

Ideas: 1. implement screen movement via keys 2. implement waypoints (hold-ctrl+mousepress to set them) 3. use asteroids and gas clouds that have effects like slowdown, damage or that can't be flown trough to give structure to the map

The background image is a bit problematic, it has too strong lines (they should be much lighter-colored instead) and when zoomed out, the lines create ugly effects. This could be solved by different images for different zoom levels (smaller have fewer lines).
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
zapwow
Prole
Posts: 48
Joined: Fri Oct 24, 2008 11:37 pm

Re: LÖVE-based RTS

Post by zapwow »

I haven't had much time this week (thesis/exams busyness) but my main contribution has been to completely rewrite every line of code that I had already done to make it more robust. Presently at ~750 lines :death:

I also reworked the State system and add more vehicle-like motion to the units, which I'm quite happy with. I've started on some basic graphics as well.

Nothing flashy here yet, but I thought I'd post an update anyway.
Attachments
rts_0.06.love
(275.29 KiB) Downloaded 464 times
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: LÖVE-based RTS

Post by rude »

Awesome. Looks promising.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LÖVE-based RTS

Post by bartbes »

Great! Selection works as aspected, auto-patrol, those graphics/animations. I look forward to playing it!
osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Re: LÖVE-based RTS

Post by osuf oboys »

Very nice. The middle button is perhaps not something that should be used for very frequent actions though (de-selection). In most games, selection with the left button replaces the current selection and addition is made by holding shift. Another option would be do deselection or centering with a double click or to only have scrolling with the right mouse button if dragging.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
iamah
Prole
Posts: 7
Joined: Mon Feb 16, 2009 9:27 pm

Re: LÖVE-based RTS

Post by iamah »

nice work... the first demo has that touch of happiness that makes great games...

do you use any tools for graphics?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest