Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

Forum Home

Too Big a Select Makes Monkey Make Many Ifs

UserMessage
Posted : Wednesday, 17 August 2016, 14:10 | Permalink
Jayenkai


WW Entries : 106
Hmm.

So, I got Puzzobomb to export its levels as one big select statement in an includable .monkey file.
Seemed logical.

Except when exporting to iOS.
For some very silly reason, instead of exporting as
Select
Case a
Case b
Case c
End select

It exports as
If a
Else
If b
Else
If c
End if

And when there's 650 levels, it ends up with an insanely huge if statement, which Xcode can't handle!!

Derp!
Going to have to rethink that.

-----
''Load, Next List!''
Homepage : http://AGameAWeek.com
Posted : Wednesday, 17 August 2016, 21:27 | Permalink
rockford


WW Entries : 3
Bonkers!

Do you really need a CASE statement for each level? Surely there must be a better way of breaking that down into smaller chunks or blocks of levels?

Or just cut the number of levels back to 10 so poor XCode can manage!
Posted : Wednesday, 17 August 2016, 22:49 | Permalink
Jayenkai


WW Entries : 106
Yeah, given that it's just making lots of ifs, I can recode it to make "better" ifs!!!
Wish I knew that earlier, though.. Would've saved a lot of time!

-----
''Load, Next List!''
Homepage : http://AGameAWeek.com
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 670|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Favourite Amstrad CPC Games
steve_ancell Sat 21:02
Shoutbox Topic - 319
steve_ancell Sat 20:52
Inside Donald Trump
rockford Sat 12:09
Any Feature Requests?
Jayenkai Sat 09:36
More Monkey Madness - With Ducks
rockford Sat 05:13
Arms on Switch
rockford Sat 05:02
Time for a new Android Test Doohickey
Jayenkai Fri 09:26
CSS-Me-Do - SoCoder2
Jayenkai Fri 06:28
Pillowcases for kids!
rockford Thu 16:15
Manchester Arena Explosion
Jayenkai Thu 02:04
More

Latest Items
Showcase : Hives
zzoom Fri 16:10
Dev-Diary : My Journey into NES Development
rychan Thu 12:31
Showcase : Flappadiddle
Jayenkai Sun 14:39
Snippet : QFind
Jayenkai Sun 13:02
Showcase : Tiny Blocks
Jayenkai Sun 04:08
Showcase : Read Error A
rychan Fri 05:13
Blog : All my makes!
Jayenkai Tue 05:48
Showcase : Infinitron
rychan Mon 18:03
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
More

Who's Online
steve_ancell
Sat, at 21:32
9572AD
Sat, at 18:50
therevillsgames
Sat, at 18:00
rockford
Sat, at 16:19
shroom_monk
Sat, at 16:02
Jayenkai
Sat, at 15:42
spinal
Sat, at 12:08
rychan
Sat, at 08:56
rskgames
Sat, at 07:21
Pakz
Sat, at 04:16
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.