EUCLIOD - A Homebrew Bullet Hell for the 3DS

Before I say anything else, I'd like to mention that this project was developed and bugtested on, and for the New 3DS system.

Rinnegatamante has helped me optimize the game, and the game runs almost flawlessly on N3DS (at present) and although I am aiming to keep the game smooth as possible for the O3DS, don't expect any miracles. (Though I have been informed that the game currently runs at 60 FPS on the O3DS)

banner.png


This has been a quick project I've undertaken to have a little test of the boundaries of the N3DS's processing power vs the O3DS. (as seen through the eyes of Rinnegatamante's LPP)

It's also (hopefully) going to be the first game I actually complete in the last 7 years of making random games that are too ambitious for me to finish.

s3.png
s1.png
s9.png



s10.png
s5.png
s2.png



s7.png
s0.png
s8.png

Video by TCPixel (Thanks a tonne man)




I've only got three levels in at the moment (my level design skills suck) but the levels are stored in plain text file so it should be easy enough to create more. 6 enemies , 3 bosses with multiple phases, and 5 different weapons. It's a bullet hell game: so you get one life, and a tiny hitbox.

The difficulty system isn't tested, I did most of the bugtesting on the highest difficulty (for the sake of keeping an eye on lag levels), so I don't know if the easier ones are laughably easy or broken.

Controls:
A -
Select (menu only... I'm currently sick of holding down A when playing Mario Kart, and mashing it for Fantasy Life)
B - Back (only works on ship select screen)
Y - Fire Primary
R - Focus Mode (halve movement speed, and uses an alternate weapon)
Start - Return to Menu
Select - Take Screenshot
On the menu, use left and right to increase/decrease difficulty, and change the level (hold Y while changing level to speed-cycle)
You can remap the Fire and Focus controls to A, B, X, Y, L, R, ZL, or ZR in the options menu if you don't like the default.
The game is currently D-Pad only, but adding in circle pad controls wouldn't be a stretch. :)

If anyone gives a crap about level making:
The game will load from any level named correctly. levelx.dat should be the filename where x is the number with no spacers. The game will state invalid if the file does not exist or if the file does not have "v001" on the first line.
The game will likely crash if you have both these but the syntax in the file is incorrect.

Code:
v001 //add this to the start of every level you make, it won't start without it
|T-000100|en01|T|100
|T-000200|en02|L|050

Every line has to be exactly 20 characters long, in this exact format (my text-parser programming skills suck)
The first 6-digit number is the frame the enemy spawns, if you're not lagging this should be 60 per second.

The second cell is the enemy that's spawning.
  • "en01" (Fighter) is the enemy that targets you with bullets
  • "en02" (Bomber) is the enemy that sits still and shoots slow bullets directly downwards
  • "en03" (Strafer) is the sliding enemy that lays down a curtain
  • "en04" (Helix) is the enemy that shoots a helix of bullets and diagonal shots alternatively
  • "en05" (Kamikaze) is a slow moving enemy that proceeds down the screen and then detonates into a ring of bullets if not destroyed
  • "en06" (Asteroid) is a large object that soaks up player shots. Graphic and direction is deterministic based on the frame it was spawned in
  • "en07" (Odin) individual mob. Untested.
  • "bo01", "bo02" and "bo03" are the three current bosses, and spawn after a warning is flashed on screen. Note that two bosses cannot be spawned within a short period of eachother. (and probably not even on the same level, this is largely untested)
The third cell is what side of the screen the enemy will enter. Top, Left, or Right. Note that I haven't tested how en03 works when entering from the Top, and I haven't tested how bo01 works when entering from Left or Right. The whole enemy spawning system is really bare-bones at the moment.

The final cell is the coordinate the enemy spawns at. For Top spawning enemies, this number is the X-coordinate they spawn at, (between 0-400 for left-right) and for Left and Right spawning enemies, this is the Y coordinate. (0-240 for top-bottom)

Okay, bored now?

[3DSX] Release 6.1
  • Re-added a null file that had been accidentally removed, to fix the red bar loading issue
[CIA] Release 7
  • Bullets now clear on stage clear
  • Control configuration and theme does not currently save as the config file is in a read-only location
  • Sounds have been disabled as a crippling bug in CIA form causes sounds to loop and memory leak, I have not identified how to solve this problem
  • As the CIA is a compiled installation, there is not currently a way to use custom levels with the CIA version
[3DSX] Release 6
  • Added sound effects
  • Color scheme is now changeable from options menu. (includes high contrast black and white mode)
[3DSX] Release 5
  • Added new enemy, "Kamikaze"
  • Added new enemy, "Asteroid"
  • Enemies now will kill you on contact
  • Added Level 3, featuring the two new enemies and a new boss, "Odin's Fleet".
  • Bosses now clear bullets before starting the next phase
  • Corrected a calculation error with the scoring (Difficulty was linearly increasing score instead of multiplicatively)
  • Made some dramatic hitbox corrections for enemy ships
  • Increased Level 1 and 2 boss health by 140% to counter the hitbox change.
  • Grazing has temporarily been removed as a new, faster, and pixel-accurate player hit detection system has now been implemented. Grazing may be added back in a later update
  • Fixed a bug that was causing homebrew launched after EUCLIOD to have messed up graphics
  • FPS counter (hopefully should remain at 60 at all times)
  • Boss health bar
  • Debug mode (hold X before loading screen displays) includes "slideshow" recording which replaces screenshots, displays a couple debug values on the bottom screen, and ups Level 1's boss's final attack to one hundred and eleven for testing lag
  • Fixed a bug that was causing multiple level's enemies to load if you chose a level then backed out of the ship select screen before choosing another level
  • Credits added
  • Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience
[3DSX] Release 4
  • Added variation to Level 2 boss's tidal wave attack to eliminate safespots
  • Added two ship types: "Tiger" and "Cicada"
  • Ship selection screen
  • The original ship, "Hawk", received a 25% movement speed reduction
  • Weapons are no longer freely scrollable. Each ship has a Primary weapon and a Focus weapon, which automatically engages when you enter focus mode. You can press Y on the ship selection screen to disable the focus weapon, which causes the Primary weapon to be used for both modes.
  • Corrected a bug that was preventing enemies from despawning and thus the level from being cleared
  • Increased graze range by 30% and doubled point reward for grazing
  • Taking screenshots now works
[3DSX] Release 3
  • Added level 2, including a new enemy (Helix "en04") and a new boss "bo02"
  • 3 New bullet types used by these two enemies: "Sway", "Diagonal", and "Moving Orbitals"
  • Corrected bug that was causing previously loaded level's enemies to spawn (only matters if anyone actually made any levels
  • Buffed seeker shot damage and tracking
  • Nerfed missile's hitbox
  • Exit button works now (big whoop)
  • Tweaked strafers so that they're not so insane on lower difficulties
  • Basic enemy shots now travel slower but have larger hitboxes
  • Basic score counter implemented. Kills and graze count towards score
  • The game will now return to menu once the level is cleared
  • Shortened enemy despawn time to reduce lag
  • Buffed boss health
  • Added "Stage Clear" text. Game will return to menu shortly afterwards

[3DSX] Release 2
  • Substantial optimization regarding boss bullet spawns, seeker rounds, all player shots in general, and moving enemies
  • N3DS mode automatically activates for N3DS systems. O3DS mode can still be forced by holding Y upon launch.
  • Combined, these two changes create a DRAMATIC performance boost for the game, so you can look forward to a lot more bullets in the future
  • The game now returns to menu several seconds after a death. You can still reset early by pressing Start.
  • Custom keybinds menu added. Keybind settings are persistent.
  • Enemies now despawn after 1000 ticks

3DSX: Just extract the archive straight to your SD card and launch via Homebrew Launcher. The unsuffixed zip files are the 3DSX versions.

CIA: Install the CIA using FBI. The zip file with "_CIA" on the end is the CIA version


Despite the CIA version having a more recent release, the 3DSX version is still superior. So if you don't mind going 3DSX over CIA, I'd recommend it.

Mod edit. Download links
https://gbatemp.net/attachments/eucliod_r6-zip.44049/
https://gbatemp.net/attachments/eucliod_r7_cia-zip.46345/
https://gbatemp.net/attachments/eucliod_r6-1-zip.64753/

Credit to Rinnegatamante for developing Lua Player Plus, the application that allows me to program in notepad and not need to know a single other thing about computers or compilers.
 

Attachments

  • Eucliod_r6.zip
    1.2 MB · Views: 1,045
  • Eucliod_r7_CIA.zip
    1.3 MB · Views: 950
  • Eucliod_r6.1.zip
    1.2 MB · Views: 624
Last edited by HexZyle,

SLiV3R

3DS Friend Code: 0473-9069-2206
Member
Joined
Jan 9, 2006
Messages
2,319
Trophies
2
Website
soundcloud.com
XP
1,847
Country
A couple of these tracks are PERFECT to be fitted in a videogame, they have a retro-futurish style i really like.
Thanks :) Yeah, I'm mostly listening to video game music. So that probably reflects the content in my songs :P

Hopefully @TheCruel will use one or two of my songs. That would be a perfect end for the musical period of my life, as I'm 100 % done with the music :)
 

Faru

Well-Known Member
Member
Joined
Nov 13, 2015
Messages
148
Trophies
0
XP
174
Country
United States
Last edited by Faru,
  • Like
Reactions: SLiV3R

SLiV3R

3DS Friend Code: 0473-9069-2206
Member
Joined
Jan 9, 2006
Messages
2,319
Trophies
2
Website
soundcloud.com
XP
1,847
Country
HOLY SHIT! This mixtape is fire.

I need more



NOOOOOOOOOOOOO

Haha. Cutie :P

4 things:
1. I think it was a bad idea of me to link to my music in this thread. I don't want to hijack it! :P
2. Music was my life for many years. But in my teenage, I never became a Rock star. And my adult life, I never became a game music composer. It's very difficult to "become" something in music. I wish I had put all those hours into coding instead!
3. Thanks for your nice comment, though :)
4. I tried EUCLIOD. I love it! Looking forward to seeing more stages :)
 
  • Like
Reactions: Faru and HexZyle

HexZyle

Pretty Petty Pedant
OP
Member
Joined
Sep 12, 2015
Messages
300
Trophies
0
XP
452
Country
Australia
Stage 2 is done. It features a new (elite) enemy I'm calling "Helix", and a new boss. Let me know what you think! (if you do so, please do let me know what difficulty you're playing on so I can make tweaks as necessary)
I get the feeling it's a rather large spike in difficulty.
 
Last edited by HexZyle,
  • Like
Reactions: SLiV3R

HexZyle

Pretty Petty Pedant
OP
Member
Joined
Sep 12, 2015
Messages
300
Trophies
0
XP
452
Country
Australia
Is sin(x) performed faster in lpp than x+(x^3)/6, for example (2nd Maclaurin approximation)?

I don't know, maybe. But I've reduced my usage of trigonometric functions, and am now storing the pre-calculated xspeed and yspeed variables instead of recalculating their motion with trigonometry every frame.
 
  • Like
Reactions: Rinnegatamante

SLiV3R

3DS Friend Code: 0473-9069-2206
Member
Joined
Jan 9, 2006
Messages
2,319
Trophies
2
Website
soundcloud.com
XP
1,847
Country
Stage 2 is done. It features a new (elite) enemy I'm calling "Helix", and a new boss. Let me know what you think! (if you do so, please do let me know what difficulty you're playing on so I can make tweaks as necessary)
I get the feeling it's a rather large spike in difficulty.

Concerning difficulty:

I have only played the first level, but that one seemed to be very balanced in difficulty. I killed the boss in the first attempt in the easiest and at the middle level. When I set it up to the most difficult, I died :P

I think the first level had a good balance. So I guess you should keep up with the stuff you're doing. Making each new stage a little bit more difficult than the other :)
 

HexZyle

Pretty Petty Pedant
OP
Member
Joined
Sep 12, 2015
Messages
300
Trophies
0
XP
452
Country
Australia
Quadtrees. Sort objects into quadrants of quadrants of quadrants (until it hits the max or is bigger than the next cell level) and only check collision with things that could be adjacent. Also, if you have pixel collision, rule out by axis-aligned bounding box first.

I don't know what this means. My collision code is simply:
Code:
if object_x-n < bullet_x and object_x+n > bullet_x and object_y-n < bullet_y and object_y+n > bullet_y then
    --collided
end
for each object the bullet can collide with (for the player's bullets, this is enemies, for the enemy bullets, this is the player)
 
Last edited by HexZyle,
D

Deleted User

Guest
Can we get a gameplay video? i usually like to see how games play before i download and try it
 

HexZyle

Pretty Petty Pedant
OP
Member
Joined
Sep 12, 2015
Messages
300
Trophies
0
XP
452
Country
Australia
Is it just my bad memory, but wasn't there a 5th version yesterday available for download ?

Pip'
I wish, that would have meant my time travelling future self was updating my post for me, which would save me a lot of programming; )

Can we get a gameplay video? i usually like to see how games play before i download and try it

Sure, I can get around to doing that sometime today. I wonder if I could play the game while a function captures frequent JPG images, and then turn it into a gif or video. It'd certainly look better than a potato quality video taken from my phone.
 
Last edited by HexZyle,
D

Deleted User

Guest
Sure, I can get around to doing that sometime today. I wonder if I could play the game while a function captures frequent JPG images, and then turn it into a gif or video. It'd certainly look better than a potato quality video taken from my phone.

I can see if it works in Citra, if you want.. and if i can figure out how to get citra working

EDIT: instantly crashes Citra when i load the 3dsx
 
Last edited by ,

WeedZ

Possibly an Enlightened Being
Global Moderator
Joined
Jan 13, 2015
Messages
3,825
Trophies
1
Location
The State of Denial
Website
gbatemp.net
XP
5,666
Country
United States
What's the file structure for this thing? Do the resource folders have to be in the same directory as the 3dsx? Does it look for them in a particular location?

Seems like just a mess of files packed together to me.
 

HexZyle

Pretty Petty Pedant
OP
Member
Joined
Sep 12, 2015
Messages
300
Trophies
0
XP
452
Country
Australia
What's the file structure for this thing? Do the resource folders have to be in the same directory as the 3dsx? Does it look for them in a particular location?

Seems like just a mess of files packed together to me.

The folder structure should be:
Code:
/3ds/Eucliod/Eucliod.3dsx
/3ds/Eucliod/index.lua
/3ds/Eucliod/rsrc/*.*
Although it's no big deal where you put the root Eucliod folder.
The index.lua file will look in the directory of where it exists for /rsrc/, so index.lua, Eucliod.3dsx, and the rsrc folder must all be in the same folder. Screenshots and Levels folders aren't critical but they must be in the same folder as the aforementioned files or the game will freeze when taking a screenshot or loading a level, respectively.

Maybe I should just pack it all in a folder structure extractable to root.
DAMN SON WHED YA PROGRAM THIS
WOT
 
Last edited by HexZyle,
  • Like
Reactions: WeedZ

Rinnegatamante

Well-Known Member
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
The folder structure should be:
Code:
/3ds/Eucliod/Eucliod.3dsx
/3ds/Eucliod/index.lua
/3ds/Eucliod/rsrc/*.*
Although it's no big deal where you put the root Eucliod folder.
The index.lua file will look in a subdirectory of where it exists for /rsrc/, so index.lua, Eucliod.3dsx, and the rsrc folder must all be in the same folder. Screenshots and Levels folders aren't critical but they must be in the same folder as the aforementioned files or the game will freeze when taking a screenshot or loading a level, respectively.

Maybe I should just pack it all in a folder structure extractable to root.

WOT

You can also pack the whole homebrew in a single 3dsx with the buildscript for romFs usage.
 

WeedZ

Possibly an Enlightened Being
Global Moderator
Joined
Jan 13, 2015
Messages
3,825
Trophies
1
Location
The State of Denial
Website
gbatemp.net
XP
5,666
Country
United States
The folder structure should be:
Code:
/3ds/Eucliod/Eucliod.3dsx
/3ds/Eucliod/index.lua
/3ds/Eucliod/rsrc/*.*
Although it's no big deal where you put the root Eucliod folder.
The index.lua file will look in the directory of where it exists for /rsrc/, so index.lua, Eucliod.3dsx, and the rsrc folder must all be in the same folder. Screenshots and Levels folders aren't critical but they must be in the same folder as the aforementioned files or the game will freeze when taking a screenshot or loading a level, respectively.

Maybe I should just pack it all in a folder structure extractable to root.

WOT
Ok, awesome. I have my homebrew apps sorted into folders with gridlauncher, so I'll just make a shortcut for it.
 

Rinnegatamante

Well-Known Member
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
The hell do I do that?

1) Edit all your reference to files to use romfs instead of sd (root of romFs is romfs:/ so your index.lua for example will be in romfs:/index.lua (Ex: dofile("romfs:/index.lua")).
2) Place index.lua and all related files in romfs folder inside buildscripts folder in lpp-3ds r5.
3) Place lpp-3ds.elf and lpp-3ds.smdh files in builscripts folder.
4) Launch 3dsx_buildscript.bat.
5) Profit.
 
  • Like
Reactions: HexZyle

zetaPRIME

Well-Known Member
Newcomer
Joined
Jan 12, 2015
Messages
87
Trophies
0
Age
32
XP
166
Country
United States
I don't know what this means. My collision code is simply:
Code:
if object_x-n < bullet_x and object_x+n > bullet_x and object_y-n < bullet_y and object_y+n > bullet_y then
    --collided
end
for each object the bullet can collide with (for the player's bullets, this is enemies, for the enemy bullets, this is the player)

Quadtrees are a spatial sorting technique for quickly narrowing down potential collisions. By sorting things into "buckets" by position whenever they move, it makes it quick and easy to narrow collision checks to those between objects who are in the same or adjacent "buckets".
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    BakerMan @ BakerMan: this one +1