Author Topic: Tower Defense with Solarus  (Read 2386 times)

kibos1er

  • Newbie
  • *
  • Posts: 2
    • View Profile
Tower Defense with Solarus
« on: May 09, 2016, 12:45:44 am »
Hello !

I have started the development of a tower-defense game using Solarus. You can find a short video of the project in its beta version here :

https://youtu.be/oyQFSLG9k3Y

For the moment,

- there is a hub, where the player selects the level he wants to play
- there are 3 example levels, with different enemy waves (with varying enemy's speed, life, number...)
- each enemy has a visible life bar (enemies are only tentacles for the moment)
- the hero can create or erase a tower (only one type of tower for the moment)
- enemies follow a path to the exit
- the number of enemies who have exited is printed on the exit
- everything is written in lua, no change has been made in the solarus engine

The next things I plan to do:

- other towers
- other enemies
- other enemy waves
- other levels
- special items ?
- a pause menu
- a tutorial level
- enemies may drop some items (life, money...)
- the sword should not allow to block the enemies (maybe with a timer between sword hits, or with enemy:set_pushed_back_when_hurt())
- clean and publish the project in a playable state

I thank the authors of the Solarus engine. I have started this project maybe 10 times with different tools, and this is the first time I reach this level of completion, thanks to this nice library.

Feel free to tell me what you think about this.

Update: the project can now be found on github: https://github.com/kibos1er/tdz

« Last Edit: May 11, 2016, 09:51:20 pm by kibos1er »

Zefk

  • Hero Member
  • *****
  • Posts: 536
  • Just helping Solarus
    • View Profile
    • Zelzec
Re: Tower Defense with Solarus
« Reply #1 on: May 09, 2016, 01:21:59 am »
(I am not an author) This looks amazing! I would be interested in you sharing it! I could add a link to my Solarus help Project? This could expand into many more quests for the Solarus Engine and others.
Solarus Help Project

froggy77

  • Full Member
  • ***
  • Posts: 137
    • View Profile
Re: Tower Defense with Solarus
« Reply #2 on: May 10, 2016, 08:07:07 pm »
I knew that a tower-defense game was possible with Solarus Engine, but I did not know it was possible to display so many enemies in the same time. :o
Very promising project !
In your game, it would be nice to recover some money when you destroyed the towers.
Quote
- special items ?
Yes why not, for example, to reduce the cost of towers, or to improve a fire effect or an ice effect according to a specialization.

kibos1er

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Tower Defense with Solarus
« Reply #3 on: May 11, 2016, 09:56:12 pm »
I have created a github repo for this project, see update on first post. Feel free to browse the code (and to propose patches ?).
I have added two enemies, and I think that I have found a solution to not allow the hero to stop enemies with the sword: on every sword impact, the hero gets pushed back.
The player also gets 5 rupees back when removing a tower. I will now add different towers and start building a tutorial.